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.

When using ssh, will my files be sent over the internet or over the LAN network? How to configure correctly?

share|improve this question

migrated from stackoverflow.com Apr 11 '11 at 14:56

This question came from our site for professional and enthusiast programmers.

2  
They'll go by whatever route your machine thinks is the shortest. That depends entirely how you're addressing the other machine. –  Marc B Apr 11 '11 at 14:42
    
It depends on your hosts file and routing table, too. –  Ken Apr 11 '11 at 14:44
add comment

2 Answers

SSH is a client-server protocol. As such it will be routed directly to the remote system. For systems on you LAN traffic will be routed over the LAN. For systems on the Internet but not on your LAN traffic will route over the Internet.

Firewalls may prevent access to and/or from the Internet.

EDIT: I missed answering your title. SSH often gets QOS (Quality of Service) flagged for faster delivery over the network. This may be modified by firewalls, but I do this is often done. No configuration should be required for this to work.

The major speeed factor for SSH connections is end to end latency. This depends on available network capacity and distance between the client and server. For SCP the size of the network window may also be a factor.

share|improve this answer
add comment

Depending on whether the remote machine is on the same LAN or on a remote network with the internet in between. SSH by definition is encrypted, so it will create a tunnel between your machine and the remote machine.

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.