Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Apr 11 '11 at 14:56

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

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .