Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putty - Automatically closes on authentication [closed]

I'm on a Windows 7 machine. I am using the Putty.exe executable for connecting to my remote machine. I enter the right credentials, and click open. The console pops up with the following and closes with no errors or warnings.

enter image description here

How do I make it work?

like image 692
Rutwick Gangurde Avatar asked Jul 24 '15 10:07

Rutwick Gangurde


People also ask

Why is PuTTY getting closed automatically?

By default the putty widows closes during ssh if there are any error on the server side without showing the error message as to why the session had failed.

How do I enable auto login in PuTTY?

On the local system, open Putty, enter the ip address details of the remote system. Now from the left navigation, select Connection -> Data. Enter 'ubu' as 'Auto-login username' on the right panel.


2 Answers

Check Putty setting: Connection > SSH > Remote command.

Try to tweak or simply remove the remote command and see if it helps solving the issue.

like image 126
Yuxiang Avatar answered Oct 15 '22 11:10

Yuxiang


What you are describing is trying to log into the shell with a user that is an "ftp only" user (not authorized shell access).

Go to Control Panel -> Users -> Manage Users, select the "Edit" link adjacent to the user you are having trouble with, and make sure that the radio button for "shell" is selected. Submit the form, and wait for it to take effect (usually a matter of a few minutes).

Once the change has taken effect, you should be able to telnet (though, please do not use telnet, as it is insecure) or ssh into the shell without problem (assuming the user/pass is correct).

like image 36
HashSu Avatar answered Oct 15 '22 10:10

HashSu