can't ssh to any device using my MacBook - Page 1
Forum section: electronics / general

author: hussamaldean
author_rank: Unknown
timestamp: February 27, 2018, 09:21:26 am
content: Hi all,I tried to ssh my beaglebone black and raspberry pi but I couldn't get pass the passwordI tried other machine it does work just finedid anybody had/ has such issue and managed to solve it ?Regards

author: frozenfrogz
author_rank: Frequent Contributor
timestamp: February 27, 2018, 09:40:56 am
content: Did you check if the right keyboard layout is selected in terminal e.g. write out the password in plain sight?If you can SSH to the password prompt I would not know why else you should have trouble signing in unless you have restricted access via iptables or ssh key pairs.

author: hussamaldean
author_rank: Unknown
timestamp: February 27, 2018, 10:19:38 am
content: Quote from: frozenfrogz on February 27, 2018, 09:40:56 amI don't know whybut I tried another app and it does work

author: thermistor-guy
author_rank: Frequent Contributor
timestamp: February 28, 2018, 02:03:51 am
content: Quote from: hussamaldean on February 27, 2018, 09:21:26 amMake sure you specify the user account using the -l option. If you have an rpi at 192.168.1.1, thenssh 192.168.1.1 -l pi

author: rbm
author_rank: Regular Contributor
timestamp: February 28, 2018, 02:21:35 am
content: Maybe you need to clean .ssh/known_hosts. If you connected once before and saved the host key, ssh might prevent you from connecting if the key changed from the one you stored. Open up a terminal window, change to .ssh directory (cd .ssh) and edit known_hosts (vi known_hosts). Check for entries related to the host you are trying to contact and delete them from the file. Save the file and try connecting again.

author: borjam
author_rank: Unknown
timestamp: February 28, 2018, 11:11:53 am
content: There are several issues that might be affecting you.User name (you can use -i or just username@address).And maybe it's a problem with the old encryption schemes that have been dropped.Can you try ssh with the -v option?In case it´s an old algorithms problem try creating a file called "config" in your .ssh user directory with the following contents:Code:Host 172.16.8.105PubkeyAcceptedKeyTypes=+ssh-dssHostKeyAlgorithms=+ssh-dssKexAlgorithms +diffie-hellman-group1-sha1(replace 172.16.8.105 with the IP address of the host you are connecting to, or if you don't care replace the IP address with an asterisk)

author: grumpydoc
author_rank: Super Contributor
timestamp: February 28, 2018, 11:46:12 am
content: Check sshd on the target system is configured to allow passwords.

author: tooki
author_rank: Super Contributor
timestamp: February 28, 2018, 03:12:55 pm
content: Quote from: thermistor-guy on February 28, 2018, 02:03:51 amor easier, like borjam hinted at:ssh pi@192.168.1.1

author: GeorgeOfTheJungle
author_rank: Super Contributor
timestamp: February 28, 2018, 03:18:44 pm
content: Quote from: hussamaldean on February 27, 2018, 09:21:26 amLike others have said, you have to provide the user name if you don't it defaults to your mac's account user name which (very likely) isn't "pi" (or root perhaps?):ssh username@ip -> ssh pi@a.b.c.dssh username@ip -> ssh root@a.b.c.d

author: hussamaldean
author_rank: Unknown
timestamp: March 01, 2018, 03:50:51 pm
content: I fix it by installing iTerm2thanks

author: GeorgeOfTheJungle
author_rank: Super Contributor
timestamp: March 01, 2018, 05:03:48 pm
content: Quote from: hussamaldean on March 01, 2018, 03:50:51 pmThat's weird, you're doing something wrong, you shouldn't need Iterm for that...