Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got a strange problem . Recently , I cannot connect to my Linux server from my windows using SSH (secure Shell ) Software suddenly . When i got connected then firstly it prompt for pasword and then I press my user also root user's password . But at that moment it hangs for a long time and cannot response anything . I dont understand the problem ..... Plz give me solution plz ...
Here i also mention that , there have no security changes in my server
Try running the ssh client in verbose mode to see how far through the login process you get.
I'm not sure about Windows ssh clients, but with the openssh client which runs on Linux you can add the -v option several times to display verbose information while the connection and login are working.
I got a strange problem . Recently , I cannot connect to my Linux server from my windows using SSH (secure Shell ) Software suddenly . When i got connected then firstly it prompt for pasword and then I press my user also root user's password . But at that moment it hangs for a long time and cannot response anything . I dont understand the problem
We need more information. You can stop the SSH daemon on the Linux machine and run it in interactive mode from the command line with either "-d" or "-v" (check your man pages) to produce debugging output. That will show you what is happening on the server, which is usually the place where handshaking and authentication problems occur.
From the output of ssh -v we can see that the authentication succeeded, so we can rule out some problem with that.
What happens next? Nothing at all? If so, it seems like the remote host is either having problems starting a shell, or perhaps there is something weird going on in the shell rc files. Did the .bashrc / .profile or similar file get edited at some point?
In any case, do you have physical access to the machine? If so, can you get a normal shell on it locally?
Try doing the log in, waiting a minute or so after it seems to be stuck, and then pressing control-C. If there is something in the .bashrc which is taking a long time to execute, pressing control-C might break out of that to a shell, and then you can edit the rc files and try to work out what is causing the lockup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.