I have enabled SSH and Port forwarded on my router to port 22 and I can't login as root user and password using putty it says access denied, and I can't connect to it using the same linux OS using the root user and password. It says Permission denied, please try again.
Can someone please let me know what I need to do to connect?
Best Answer
To install SSH on Linux using terminal
To see if ssh is installed on Linux (the client) to see if it is installed on the computer type:
To see if ssh server is installed on the Linux system type:
local host (is the loopback IP address, the IP address that the computer uses to talk to the same Linux OS)
To install ssh server type:
To see if the ssh server is active type this:
type Ctrl+c after this if the terminal won't let you type anything now.
If the server is active you can type this command to start it:
Then you can use this command to to see if it is now active:
Type Ctrl+c after this if the terminal won't let you type anything now.
and to stop the SSH server you can type this if want to stop it sometime:
you can also check the status using this command to make sure it stopped:
If you are using Virtual Box and need to type Ctrl+c, make sure you hold down the Ctrl button and then type c while still holding Ctrl; Virtual Box uses this key as default as the host key so you might have to try the other Ctrl button on the keyboard if this is not working.