简体   繁体   中英

Connecting to a remote linux machine from windows using SSH give permission denied error

So I am here new to ssh. I tried making a localhost connection on my Windows 10 device and it worked but I want to connect to a remote Linux machine.For this I am executing a statement for ssh on the cmd but it always gives me permission denied error while connecting to it. It asks for the password and then gives this error. Can anyone tell me how to configure it?

This is what I get as error when I run it in command prompt.

D:\Internship\Temporary Files>ssh connect@192.168.137.248
connect@192.168.137.248's password:
Permission denied, please try again.

the format of the ssh command (or at least the bits you need) is:

ssh remoteuser@host

since you are logging in to Raspberry Pi and you indicated putty worked with the user pi , the correct command would be:

ssh pi@192.168.137.248

I assume that 192.168.137.248 is the IP address of the Raspberry Pi (If not, make sure you use the IP of the rasbperry pi).

With regard to your "on the same network" question, if you were not on the same network (or there was no route to the network with the Pi), then you would not have seen the "Pasword:" prompt. Instead you would have got a timeout or "no route to host" error. If it were a firewall issue, you would have got a timeout or a "connection refused" error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM