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
        HostName jumpbox.clientA.aws.com

Host serverC
        ProxyCommand    ssh -q serverB nc -q0 serverC -db 22


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

jsm...@jumpbox.clienta.aws.com's password:
jsm...@jumpbox.clienta.aws.com's password:
jsm...@jumpbox.clienta.aws.com'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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to