unix1986 / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

pssh overrides default users from .ssh/config #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From dooblempub (originally in issue #8):

Comment 14 by dooblempub@positon.org, Today (11 hours ago)
Ok, I made one test again. Maybe we are searching the wrong way.

I managed to make it work with my ssh private key !!

In fact, I had to tell pssh the right user in the hosts file :

SERVER root
instead of just :
SERVER

I have "User root" in my ~/.ssh/config file, in order to tell ssh to use 
"root" as
default user instead of my own username.

SSH called from pssh seems to ignore the user config. No ?

Original issue reported on code.google.com by amcna...@gmail.com on 22 Feb 2010 at 11:17

GoogleCodeExporter commented 8 years ago
I've noticed this before, too, and I agree that the default user specified in 
.ssh/config should be used in this case.

I have made and pushed a short change that seems to address the problem for me. 
 Would 
you please confirm that this works for you?  Thanks.

Original comment by amcna...@gmail.com on 22 Feb 2010 at 11:22

GoogleCodeExporter commented 8 years ago
OK, thanks a lot. It works for me too.

With "User root" in my ssh config it works fine. And changing root to a wrong 
user
fails as expected.

Original comment by dooblem...@positon.org on 24 Feb 2010 at 7:47

GoogleCodeExporter commented 8 years ago
Thanks for reporting the problem and testing the fix.  Please continue to 
report any 
other problems you come across.  Thanks.

Original comment by amcna...@gmail.com on 24 Feb 2010 at 4:10