Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-25-2008, 10:26 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
SCP through bastion w/o nc

Hey all,

I've spent most of the morning poking at this question so I though I'd ask.

I need to connect to serverX through SSH, to get there I need to pass through bastionX I can two-pass SSH to the box and read all I want. The issue is that I want to be able to scp logs from serverX to my local machine. I tried editing my local .ssh/conf and adding a ProxyCommand using nc, however netcat isn't available on the bastion, almost nothing other then scp and ssh is.

Is there any way to scp from my local box to serverX through the bastion without using nc?

All machines are running Linux of differing flavors

Thanks for reading,
Old 11-25-2008, 12:14 PM   #2
LQ Newbie
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Foolish me

So it turns out all I need to do is set up a simple SSH tunnel and point SCP to the port I have specified on my localhost as the Source Port.

Thanks to anyone who read this



network, scp, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
LXer: Review: Citadel: A Bastion of Groupware Functionality LXer Syndicated Linux News 0 09-10-2008 03:10 AM
scp help akhil.mud Programming 6 04-14-2008 08:47 PM
LXer: Citadel: A Bastion of Groupware Functionality LXer Syndicated Linux News 0 04-09-2008 07:00 AM
Bastion Host gfdecaires Linux - Networking 0 10-13-2005 06:20 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration