raspberrynewbB
Posts: 12
Joined: Fri Sep 29, 2017 6:32 am

problem connecting via SSH to Raspberry pi 3 to ubuntu

Sun Oct 01, 2017 3:18 am

hey there,

I am running ubuntu 16.04 on my laptop.

I just got the rpi3 and the first thing i did was boot it up and connect to my wifi.

then i went to settings and enabled SSH

then i ran ifconfig in the terminal, and grabbed my inet addr from the wlan0

when i try to run "ssh (inet address)" in my ubuntu terminal.. i get the following message "Connection closed by (inet address) port 22"

can anyone please tell me what i am doing wrong?? and guide me to ssh via wifi to the rpi from ubuntu?

raspberrynewbB
Posts: 12
Joined: Fri Sep 29, 2017 6:32 am

Re: problem connecting via SSH to Raspberry pi 3 to ubuntu

Sun Oct 01, 2017 4:18 am

FYI solved..if anyone has similar issue:

after enabling SSH using "sudo raspian-config"

enter "sudo rm /etc/ssh/ssh_host_* "

then "sudo dpkg-reconfigure openssh-server"

into terminal and try again should work using: ssh (ip address) -l pi

Return to “Beginners”