SalemAlqahtani
Posts: 38
Joined: Tue Jun 24, 2014 4:42 pm

SSH connection

Sun Jan 10, 2016 6:37 am

Hi guys,

I am trying to connect from pi to the laptop via ssh. I am apple to connect form laptop to raspberry pi but I could not do it form pi to my laptop.

This what is happening.

Code: Select all

my laptop is the server and it has static ip address 192.168.0.7
my pi is the client and it has not static ip address 192.168.0.8

pi@raspberrypi ~/.ssh $ ssh sss@192.168.0.7Password:
Password:
Password:
Permission denied (publickey,keyboard-interactive).
pi@raspberrypi ~/.ssh $ 

It asked me the server password and i try to enter it but it was not able to take it.

This is the ssh files on raspberry

Code: Select all

pi@raspberrypi ~/.ssh $ ls
authorized_keys  id_rsa  id_rsa.pub  known_hosts

Please I need some suggestions

Navyscourge
Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: SSH connection

Sun Jan 10, 2016 9:55 am

The Pi is all set up as a SSH server, so recognises any requests from your laptop and makes the connection.

Windows does not have this; you need to install it. It is not recognising / accepting the requests from the Pi. Have you done this? There are instructions here: https://winscp.net/eng/docs/guide_windo ... ssh_server

Why do you want to do it? There may be other problems with user permissions and firewall

SalemAlqahtani
Posts: 38
Joined: Tue Jun 24, 2014 4:42 pm

Re: SSH connection

Sun Jan 10, 2016 4:14 pm

Hi there,

I wanna connect pi to mac ( as a server) because I want to send an images through the socket connection from pi to process over the server ( laptop ).

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: SSH connection

Sun Jan 10, 2016 4:22 pm

SalemAlqahtani wrote:I wanna connect pi to mac ( as a server)
Did you enable the ssh server on the mac?
http://osxdaily.com/2011/09/30/remote-l ... -mac-os-x/

SalemAlqahtani
Posts: 38
Joined: Tue Jun 24, 2014 4:42 pm

Re: SSH connection

Thu Jan 14, 2016 4:34 am

Yes, I did

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: SSH connection

Thu Jan 14, 2016 5:49 am

SalemAlqahtani wrote:Please I need some suggestions
Run ssh with -v -vv or -vvv so you can get more information about what it is trying and why it is dying.

Return to “Troubleshooting”