Re: multi-hop scp questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx's password:
> 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
> 

-- 
Kevin J. Cummings
kjchome@xxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://www.linuxcounter.net/)
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]
  Powered by Linux