keith li
asked on
can not connect linux via putty
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you run the command as root? If you didn't try
sudo service sshd restart
What do you get with "service sshd status" (or "sudo service ...")?
You can check for errors in /var/log/auth.log (or whatever log is configured for the "AUTH" facility, if any) , or you can try to start sshd from the commandlne in order to get some info
/usr/sbin/sshd -e
Note that sshd will process just one connection when started with "-e", but will display error messages (if any) on the terminal.
In all cases, use "sudo ..." if you're not root.
sudo service sshd restart
What do you get with "service sshd status" (or "sudo service ...")?
You can check for errors in /var/log/auth.log (or whatever log is configured for the "AUTH" facility, if any) , or you can try to start sshd from the commandlne in order to get some info
/usr/sbin/sshd -e
Note that sshd will process just one connection when started with "-e", but will display error messages (if any) on the terminal.
In all cases, use "sudo ..." if you're not root.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes i can login before just in recent day can not login, will try the above method tonight !
So you cannot restart sshd? Can you post the error here?
When you try the restart, how are you logged on to the linux machine?
When you try the restart, how are you logged on to the linux machine?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER