1. Are you allowed to run any software on host B?
2. Do you have ssh access to host B or is it restricted to scp/sftp?
Main Topics
Browse All TopicsHi
I have host A on subnet 1 which can reach host B.
Host B has another NIC port which connects to subnet 2
& Host B can reach Host C.
Host A has no route to Host C & I'm not allowed to add a
route in Host B.
All hosts A, B, C are hardened & I'm not allowed to run remsh or rsh
or ftp, only scp or sftp
Host A is Redhat Enterprise Linux 4.5 while Host B is a Redhat
Enterprise Linux 5.3 & Host C is a Solaris 8
Q1:
How can I scp or sftp a file from Host A to Host B ?
scp ... | ... | ...
I'll need a script or command that can be run daily on A
without the need to do it manually (just a cron job in A).
Need to copy files about once per day from host A to C
Q2:
Can someone describe or point me to a link on simple ways to set up
scp ( ie ssh ) without the need of password, ie using private/public keys
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
OK, what you do is on host A, issue
ssh user@HostB -L 2222:hostC:22
scp -P 2222 user@localhost:/some/dir
To explain more fully. This sets up a SSH tunnel between HostA and HostC using HostB as the intermediary. The -L 2222 specifies what port to listen to locally on HostA to enter the tunnel and the host and port number following tell it where to tunnel to.
So long as you have ssh keys set up, you can automate the whole process with no user interaction.
Business Accounts
Answer for Membership
by: medveddPosted on 2009-09-15 at 05:53:08ID: 25334289
Q1: it's called tunneling. Tutorial is here:
iki/index. php? title= SSH%2C_SCP _Tunneling
ration.org /articles/ 152
https://www.nbcr.net/pub/w
Q2: http://www.debian-administ