Cannot ssh into a linode instance.

Hello, I cannot login into my linode VM. I did a ping. It is working. But when I ran telnet xxx.xxx.xxx.xxx, I get telnet: Unable to connect to remote host: Connection refused. But I can connect via telnet when I run telnet xxx.xxx.xxx.xxx 80,
I rebooted the server, I changed the root password. Nothing worked.
I can't login using LISH as well so that I can restart the ssh service.
When I try to login using the command ssh -t username@lish-region.linode.com VMname, I get this line - Ubuntu 16.04.5 LTS ttyl50. Then I get prompted to login again and again. A lot of projects are running in that VM. Please help me ASAP.

Thanks a lot in advance.

1 Reply

Hi @azlin_gautam

But when I ran telnet xxx.xxx.xxx.xxx, I get telnet: Unable to connect to remote host: Connection refused

You won't be able to a straight telnet into a Linux box - Linux uses SSH by default, which is encrypted and requires the use of an SSH client. SSH operates on port 22 by default.

See these guides here, depending on the platform you are running on the machine you are connecting from. If you have a limited user account set up, use your username and password, otherwise try root (although be aware SSH may be configured not to allow remote logins to the root account.)

When I try to login using the command ssh -t username@lish-region.linode.com VMname, I get this line - Ubuntu 16.04.5 LTS ttyl50. Then I get prompted to login again and again.

That is the console of your machine. If you are prompted to login, you need to login with "root" (or your username if you have a limited user account set up) and the password for root.

If you have forgotten the root password, you can use the Linode Manager to reset it.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct