situation: one is userA but wants to ssh login to server with ipv4: 123.123.123.123 via userB (dedicated user for that server/task).

so what one does is:

  • make sure one can login as userB

than as userA:

userA: ssh -v -i /home/userB/.ssh/id_rsa userB@123.123.123.123

one will be asked for the passphrase of the ssh-key of userB and voila!

logged in! 🙂

PS: REALLY REALLY LOVE OPENSSH! GREAT JOB ALL INVOLVED! 🙂

it’s usefull for SOOOO many things not only:

  • remote administration of servers
  • secure file-transfer / rsyncing files
  • vpn like: tunneling ports and traffic

 

admin