Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two Linux servers with static IP addresses 192.168.0.200 and 192.168.0.201. Both machines are connected to my router which is set up to forward SSH Port 22 to 192.168.200.

I have PuTTY'd into 192.168.0.200. How can I access files on 192.168.0.201. Note that iptables and SeLinux currently are not active.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

As long as SSH is installed on the second server, you should be able to just SSH into it's IP address (192.168.0.201) on port 22, since both machine's are on the same network.

Unless you're asking about how to access the second machine from outside of the network, ie. from another location. In that case you'll need to configure the second machine to listen for SSH connections on another port (ie. 222) and have your router forward port 222 to the second server.

However, it might be simpler to just SSH into the 1st server, then SSH to the 2nd server from that session.

share|improve this answer
    
Thanks Nathan. I am at work now, and my servers are in my house. So, I am outside of my network. When PuTTY'd into 192.168.0.200, I just tried scp 192.168.0.201:/ ./, and I came close. Any suggestions? Is this what you mean by SSHing into the 2nd server? –  user1032531 Jul 15 '13 at 18:48
1  
Ah ha!, as easy as ssh 192.168.0.201! –  user1032531 Jul 15 '13 at 18:50
    
Actually, maybe not as easy as I thought. I am still stuck on 192.168.0.200. –  user1032531 Jul 15 '13 at 19:11
    
Try ssh user@192.168.0.201 should then prompt for password. Otherwise defaults to whatever user your logged in locally with. –  nathangiesbrecht Jul 15 '13 at 22:03
    
Got home and tried to ssh from one server to another. Worked perfectly. For some reason, if you are PuTTYd into one, attempting to PuTTYing into another keeps you stuck in the first server. –  user1032531 Jul 16 '13 at 13:05
show 4 more comments

I word. SCP. You can use similar command line arguments as the good ole cp, but this will invoke the copy process over ssh using either the native scp client on the remote end or sftp.

It simly uses the syntax like this:

scp user@host:/path/to/file /destination/folder

or

scp /source/folder user@host:/path/to/destinaion

Of course, you can also use the -r flag to copy entire directories.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.