mpssh icon indicating copy to clipboard operation
mpssh copied to clipboard

not using the ssh config file

Open linbynd opened this issue 10 years ago • 6 comments

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.

linbynd avatar Jun 09 '15 23:06 linbynd

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

ndenev avatar Jun 10 '15 07:06 ndenev

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

linbynd avatar Jun 10 '15 21:06 linbynd

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

ndenev avatar Jun 13 '15 10:06 ndenev

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

dbv-rl avatar Jun 05 '19 12:06 dbv-rl

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

ecraven avatar Jan 21 '21 17:01 ecraven

I wouldn't count on it....

Spreadcat avatar Jan 21 '21 21:01 Spreadcat