On 12/08/16 14:04, ProPAAS DBA wrote:
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
Can you login to your jumpbox, and copy the files from there?
something like
scp username@serverc:path/to/file.type otheruser@laptop:path/to/new.file
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
jsmith(a)jumpbox.clientA.aws.com's password:
jsmith(a)jumpbox.clientA.aws.com's password:
jsmith(a)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(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
--
Kevin J. Cummings
kjchome(a)verizon.net
cummings(a)kjchome.homeip.net
cummings(a)kjc386.framingham.ma.us
Registered Linux User #1232 (
http://www.linuxcounter.net/)