Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not using the ssh config file #24

Open
linbynd opened this issue Jun 9, 2015 · 6 comments
Open

not using the ssh config file #24

linbynd opened this issue Jun 9, 2015 · 6 comments
Assignees

Comments

@linbynd
Copy link

linbynd commented Jun 9, 2015

The program looks great and been trying it out. But seems to be that it does not use the current .ssh/config file for host checking.

@ndenev
Copy link
Owner

ndenev commented Jun 10, 2015

Mpssh itself does not use these ssh config files, it merely execs ssh, and ssh should use them. What exactly are you seeing?

@linbynd
Copy link
Author

linbynd commented Jun 10, 2015

I have a ssh config file for servers and I use different username for hosts which are defined in the config. when I put just the alias name its picking up from the config file however it does not pick the user from the config file. I have to explicitly define the user it in .mpssh/hosts.

ubuntu@             curie-alpha-ha-ub-1 -> ubuntu
ec2-user@        curie-alpha-tomcat-amz-2 -> ec2-user
ec2-user@        curie-alpha-tomcat-amz-3 -> ec2-user
  ubuntu@             curie-alpha-ha-ub-2 -> ubuntu
ec2-user@        curie-alpha-tomcat-amz-1 -> ec2-user
ec2-user@        curie-alpha-tomcat-amz-4 -> ec2-user
  ubuntu@           curie-alpha-solr-ub-1 -> ubuntu
ec2-user@        curie-alpha-tomcat-amz-7 -> ec2-user
ec2-user@        curie-alpha-tomcat-amz-8 -> ec2-user
ec2-user@        curie-alpha-tomcat-amz-5 -> ec2-user

╭─linbynd at punc02p59rgg3qd in ~/.mpssh using ‹ruby-2.2.1› 15-06-11 - 3:19:27
╰─○ cat hosts
%curie
ubuntu@curie-alpha-ha-ub-1
ubuntu@curie-alpha-ha-ub-2
ec2-user@curie-alpha-tomcat-amz-1
ec2-user@curie-alpha-tomcat-amz-2
ec2-user@curie-alpha-tomcat-amz-3
ec2-user@curie-alpha-tomcat-amz-4
ec2-user@curie-alpha-tomcat-amz-5
ec2-usercurie-alpha-tomcat-amz-6
ec2-user@curie-alpha-tomcat-amz-7
ec2-user@curie-alpha-tomcat-amz-8
ubuntu@curie-alpha-solr-ub-1

@ndenev
Copy link
Owner

ndenev commented Jun 13, 2015

Ok, this might be because mpssh always supplies a username, even if you don't supply one it uses the current user username.

@ndenev ndenev self-assigned this Jun 13, 2015
@dbv-rl
Copy link

dbv-rl commented Jun 5, 2019

yes, just stumbled over this as well... as it's roughly now having it's 4th birthday.

@ecraven
Copy link

ecraven commented Jan 21, 2021

any way to fix this? this makes it unusable for my use case, and it looks like a great tool otherwise!

@Spreadcat
Copy link

I wouldn't count on it....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants