Linked Questions

5 votes
1 answer
5k views

ssh terminal session times out, how can this be changed [duplicate]

It seems after about 5 minutes an inactive ssh session is terminated. The server is Ubuntu. How can I change this?
Chris Muench's user avatar
1 vote
1 answer
137 views

SSH - remote fowarding - ensure connection is always active [duplicate]

I have 2 servers. Server A is behind a router, to which I have no admin access. It has a user: userA Server B (example.com) is a cloud server with a public ip. It has a user: userB I am ...
Shawn Northrop's user avatar
254 votes
8 answers
190k views

Way to avoid ssh connection timeout & freezing of GNOME Terminal

When I connect via ssh to certain servers, it timeouts and "freezes" the terminal (doesn't accept input, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything). This is in Ubuntu's ...
Kzqai's user avatar
  • 2,878
149 votes
6 answers
262k views

How to prevent SSH from disconnecting if it's been idle for a while

I have a ssh connection to a machine which gets disconnected by that machine after 30 minutes of no user input. However, if I start something like top, the connection stays alive. Since this is a ...
Isaac's user avatar
  • 1,904
50 votes
9 answers
104k views

Automatic SSH tunneling from Windows

I'm trying to set up a Windows computer to always have two SSH tunnels to my Linux server. Currently, I'm using PuTTY to open the two SSH tunnels: I log in to the server in PuTTY, leave it minimized,...
David Yaw's user avatar
  • 797
5 votes
4 answers
7k views

SSH to computer with shared public IP and no admin rights over the router

I live in a student dorm (off-campus) and all students of the dorm share the same WAN IP (Internet or public IP), which is fortunately static. I am not an admin and have no control over the router ...
Aamir's user avatar
  • 295
3 votes
1 answer
3k views

Get ssh access to a Raspberry Pi in a cellular network with blocked ports by ISP

I have a Raspberry Pi computer in the field with a USB modem stick (Huawei E5372). Sim card doesn't accept incoming requests, all ports are disabled by ISP. I already have access from my desktop ...
dstonek's user avatar
  • 173
0 votes
1 answer
1k views

Setup ssh tunnel to access FTP on a remote server

I have an FTP server which is only accessible from 1 cloud machine (limited by IP). Is it possible to create an SSH tunnel between my home computer and the cloud machine so I can access the FTP ...
mrwooster's user avatar
  • 241
0 votes
1 answer
1k views

Can I use SSH to serve a tunneled resource (HTML page) on a local network?

I have a remote-hosted resource (webapp) that I have to tunnel into a server to access remotely. I can complete the local port forwarding command using -L and then access the remote resource at ...
user3.1415927's user avatar
0 votes
0 answers
895 views

Client ssh process not terminating when session is disconnected

I have a host that I need to deploy on a network that I will not have physical access to for some time, so I have set up a persistent reverse ssh connection from a guide, using cron and the script ...
user1330734's user avatar
0 votes
0 answers
363 views

Cannot use SSH Tunnel despite it is created

I installed a remote Raspberry Pi (Debian up-to-date) camera with a mobile modem-router connected to it to upload photos to a cloud. That has been working very good in the past and at the present. To ...
Daniel Franco's user avatar