> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# How to Prevent Frequent SSH and SCP Disconnects

SSH and SCP connections can drop when there is no data transfer for a while. Sending keepalive packets helps maintain the connection and can prevent disconnects caused by connection timeouts. This guide shows how to turn them on in WinSCP and PuTTY.

## WinSCP


### Open WinSCP
Open WinSCP.
### Click Advanced
Click the **Advanced** button.
<img alt="Advanced button in WinSCP" src={image0} />
### Open the Connection settings
Click **Connection**. The connection settings window opens.
<img alt="Connection settings in WinSCP" src={image1} />
### Set the keepalive options
Change **Server response timeout** to `15`, select **Sending of null SSH packets**, and change **Seconds between keepalives** to `10`. Then click **OK**.
<img alt="Keepalive settings in WinSCP" src={image2} />
### Log in
Click the **Login** button to connect.
<img alt="WinSCP login window" src={image3} />

## PuTTY


### Open PuTTY
Open PuTTY.
### Open the Connection category
Click **Connection** under **Category**.
<img alt="Connection category in PuTTY" src={image4} />
### Set the keepalive interval
Change **Seconds between keepalives** to `10`.
<img alt="Seconds between keepalives in PuTTY" src={image5} />
### Connect
Click **Session** under **Category** and enter the IP address. Then click the **Open** button.
<img alt="Session settings in PuTTY" src={image6} />
