Friday, March 4, 2016

Putty network error software caused connection abort

It has been 4 years since I published my post. This is one of the posts that was left as draft in 2012.

Working on remote machines machine can be a pain. Putty can be life saver for windows folks. There are so many useful settings that are hardly touched upon in our daily use. One of them is connection settings.

If you have seen this error 'Network error software caused connection abort putty' every time you went for lunch or tea, then it is time to get rid of it.

It turns out the setting is on the putty not the server side. 

1. Start Putty.
2. “Load” your session.
3. Click on “Connection”.
4. On the section that says “Sending of null packets to keep session active”, put some value there. I changed mine to 300 secs.

"Some network routers and firewalls need to keep track of all connections through them. Usually, these firewalls will assume a connection is dead if no data is transferred in either direction after a certain time interval. This can cause PuTTY sessions to be unexpectedly closed by the firewall if no traffic is seen in the session for some time.

The keepalive option (‘Seconds between keepalives’) allows you to configure PuTTY to send data through the session at regular intervals, in a way that does not disrupt the actual terminal session. If you find your firewall is cutting idle connections off, you can try entering a non-zero value in this field. The value is measured in seconds; so, for example, if your firewall cuts connections off after ten minutes then you might want to enter 300 seconds (5 minutes) in the box." 



Tuesday, August 28, 2012

Receiving 'Access Denied' just after typing the username in Putty

Problem: Getting 'Access Denied' just after typing username in putty.

Information: The above problem occurs because of the failure of GSSAPI authentication.

What is GSSAPI?  
Generic Security Services Application Program Interface(GSSAPI) is a ITEF standard for doing strong encrypted authentication in network based applications. OPENssh uses this API and the underlying kerberos 5 code to provide a alternative means of authentication other than ssh_keys.
The GSSAPI, by itself, does not provide any security. Instead, security service vendors provide GSSAPI implementations usually in the form of libraries installed with their security software.


1. Open Putty.
2. Go to Connection->SSH->Auth->GSSAPI.
3. Uncheck the "Attempt GSSAPI authentication(SSH2-only)" option.
4. Save the session.

Putty: Access Denied Problem

Note: PuTTY 0.62 fixed the bug where failing GSSAPI authentication caused this error message.


Saturday, June 30, 2012

Ubuntu 12.04 : Middle Click Shortcut

Using Mouse:
1.  Usually Mouse has a scroll wheel, click it to use it as middle click.
2.  Some old mouse has middle click instead of scroll wheel.

Using Touch-pad:

1. On touchpads that support multi-finger taps, you can tap with three fingers at once to middle-click.
    Note: This feature is not available in all laptops. My laptop doesn't have this functionality.


1. "Paste Selected Text" inside applications. Select the text as normal, then bring your mouse(without deselecting) where you want to paste it, and finally use middle click to paste it. Some of the applications that I have tested till now are: gedit, chrome, terminal, gnote.
Note: Pasting text with your middle mouse button is completely separate from the normal clipboard. Selecting text does not copy it to your clipboard.

2. In the "file manager", middle-click serves two roles. If you middle-click a folder, it will open in a new tab. This mimics the behavior of popular web browsers. If you middle-click a file, it will open the file, just as if you had double-clicked.

3. Most "web browsers" allow you to open links in tabs quickly with the middle mouse button. Just click any link with your middle mouse button, and it will open in a new tab.

4. On "scrollbars and sliders", a regular click in the empty space moves by a set amount (such as one page) in the direction you clicked. You can also middle-click in the empty space to move to exactly the location you clicked.