Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Let's say we have the following scenario: We have two identical *nix servers using a shared filesystem. We connect through SFTP (not FTPS) to one of them to upload a file to the shared filesystem, the server goes offline and we get redirected to the second system which is still available.

My question is, would there be any connection persistence or the user will have to relogin? I guess a relogin would be needed because the ssh sessions are not shared between the two systems...

Thanks in advance :)

share|improve this question
Based on my readings on the Internet, the user have to relogin, because the session are not shared, as what you already mentioned. – Sharuzzaman Ahmat Raslan Oct 18 '13 at 10:38

It depends on what you mean by "get redirected". If it's something like a DNS failover, then the client will know that the connection has been dropped so persistence is not possible.

It is possible to build an advanced load-balancing service which will terminate the SFTP connection and share state with another load-balancer so that any single component failure will be transparent to the client. However this could be very expensive if you went with products like the F5 BigIP.

In summary, it is possible but it would be expensive and add significant complexity.

share|improve this answer
Thanks for the reply. Can you provide me a little bit more information about your second statement? (building a load-balancing service etc) – Cobra Kai Dojo Oct 24 '13 at 15:54

Your Answer


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.