How to prevent frequent SSH and SCP disconnect

WinSCP

1) Open the WinSCP.

2) Now click on Advance button. Putty

3) Then click on Connection. You will get connection setting window Putty

4) Change Server Response Timeout to 15, select Sending of null SSH packets, change Seconds between keepalives to 10 and then click on Ok Putty

5) Now click on Login button Putty

Putty

1) Open the Putty.

2) Click on Connection under the Category. Putty

3) Change the Seconds between keepalives to 10 Putty

4) Now click on Session under category and enter the IP. Then click on Open button Putty