All;
I want to copy files from server C to my laptop, I have access to server C via: laptop --> ssh to server B (the jumpbox) then server B --> ssh to server C
I added an ssh config like this (.ssh/config in my home dir on my laptop):
Host serverB
However when I tried this from my laptop: ssh myuser@serverC I get prompted for my user on serverB, enter the pw but it never accepts it: $ ssh myuser@serverC jsmith@xxxxxxxxxxxxxxxxxxxxxxx's password: jsmith@xxxxxxxxxxxxxxxxxxxxxxx's password:
I notice that I'm trying to login as the jump box user (myuser) but i'm prompted for the laptop user I'm logged in as (jsmith).
Can anyone help me get multi-hop ssh/scp working even when the user I want to connect as is not the same as my laptop user? Also do I need to setup ssh keys to make this work? I'd prefer not to do this...
Thanks in advance
|
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx