tag:blogger.com,1999:blog-11788780.post2030467882415210676..comments2023-12-29T13:22:33.104-08:00Comments on JJinuxLand: Linux: psshjjinuxhttp://www.blogger.com/profile/03270879497119114175noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-11788780.post-14352690213460883322012-08-30T03:40:40.038-07:002012-08-30T03:40:40.038-07:00Cool :)Cool :)jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-29033016586965391772012-07-18T21:02:51.699-07:002012-07-18T21:02:51.699-07:00https://github.com/jcmcken/parallel-ssh
A forked ...https://github.com/jcmcken/parallel-ssh<br /><br />A forked pssh that includes options to run arbitrary scripts rather than specifying each command individually, as well as running with sudo (assuming you have passwordless sudo permissions on the remote server)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11788780.post-74556982251267773852012-02-01T16:39:02.122-08:002012-02-01T16:39:02.122-08:00Great tip! Thanks!Great tip! Thanks!jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-27049473548620183162012-02-01T15:29:14.109-08:002012-02-01T15:29:14.109-08:00If you have the same password on each of the machi...If you have the same password on each of the machines, you can use the "-A" option in pssh to manually enter the password. Using the "-A" with pssh or pscp makes it easy to blast out keys.Andrewhttps://www.blogger.com/profile/12127985852882927242noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-33113913452894100522011-06-04T22:48:27.435-07:002011-06-04T22:48:27.435-07:00ssh-copy-id is not available everywhere.ssh-copy-id is not available everywhere.taylorhttps://www.blogger.com/profile/15054240881149205247noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-53166685704265721922011-04-07T11:30:16.650-07:002011-04-07T11:30:16.650-07:00Thanks!Thanks!jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-29990373416518645412011-04-07T11:16:24.303-07:002011-04-07T11:16:24.303-07:00I ran into this issue, but if you search through b...I ran into this issue, but if you search through bug reports for sudo, you will run across:<br /><br />http://code.google.com/p/parallel-ssh/issues/detail?id=44&can=1&q=sudo<br /><br />The author states that you can use -x to pass args to ssh.<br /><br />pssh -h hosts -o foo -x "-t -t" 'sudo uptime'<br /><br />Does what you want.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11788780.post-85011137913975003652011-03-30T17:32:43.108-07:002011-03-30T17:32:43.108-07:00> What about Fabric?
I think of Fabric as a go...> What about Fabric?<br /><br />I think of Fabric as a good, long-term, non-interactive solution, whereas I think of pssh as a good, short-term, interactive solution. Am I wrong?jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-20762881604829551832011-03-30T17:32:03.262-07:002011-03-30T17:32:03.262-07:00> I haven't used pssh myself, but from your...> I haven't used pssh myself, but from your description it seems a lot more involved than cssh. Have you tried it?<br /><br />I haven't used it. How is cssh simpler?jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-90882319918569350272011-03-30T17:28:57.518-07:002011-03-30T17:28:57.518-07:00> Why don't you just use "ssh-copy-id ...> Why don't you just use "ssh-copy-id -i ~/.ssh/id_rsa.pub user@server" to copy the public key?<br /><br />Uh, because I didn't know about that. Thanks!jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-23367885296240406712011-01-07T07:03:01.842-08:002011-01-07T07:03:01.842-08:00What about Fabric?What about <a href="http://fabfile.org/" rel="nofollow">Fabric</a>?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11788780.post-50725659115894136112011-01-07T03:26:13.306-08:002011-01-07T03:26:13.306-08:00I haven't used pssh myself, but from your desc...I haven't used pssh myself, but from your description it seems a lot more involved than cssh. Have you tried it?David Björkeviknoreply@blogger.comtag:blogger.com,1999:blog-11788780.post-73981166542098898842011-01-07T01:39:38.176-08:002011-01-07T01:39:38.176-08:00Totally agree with Anonymous; avoid re-inventing t...Totally agree with Anonymous; avoid re-inventing the wheel and specifying version specific filenames (i.e authorized_keys2 instead of authorized_keys).ΤΖΩΤΖΙΟΥhttps://www.blogger.com/profile/07123532353472970521noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-35239734071449123132011-01-06T23:09:05.863-08:002011-01-06T23:09:05.863-08:00Why don't you just use "ssh-copy-id -i ~/...Why don't you just use "ssh-copy-id -i ~/.ssh/id_rsa.pub user@server" to copy the public key?Anonymousnoreply@blogger.com