0

Hi I have some hosts I need to ssh to, the username I use for those hosts are different then the username of the pc that I ssh from. but the password is the same, is it possible that when I ssh it will automatically use the password of the pc that I ssh from.

Also some hosts that I ssh to, have the same username and password of the computer that I ssh from. How can I tell ssh to automatically use the same password and username that I use in the pc that I ssh from?

thanks.

1 Answers1

1
  1. ssh/sshd do not use might be told to ignore unix password, by using public/private key, those keys might have password, but it is seldom the case in linux/unix world.
  2. you can change, on a per session bassis distant username with either:

    ssh -l john distant
    ssh john@distant
    
  3. as told in https://stackoverflow.com/questions/10197559/ssh-configuration-override-the-default-username , you can use a local config file (~/.ssh/config) to change username on a host basis.

Archemar
  • 1,707