I am trying to connect to my Raspberry Pi over ssh using my MacBook. The command
ssh -v pi@ipadress gives the following output:
I have tried all the answers from other threads but could not get it working. Weirdly though, it works on my iMac without any problems. Is there a way to completely reset all the ssh configurations on my MacBook? I had to recently restore my MacBook from a TimeMachine backup, could it be that the problems come from there?
sk8rsk8r
1 Answer
SSH debugging can be notoriously tricky. I'd start with adding additional
-v 's to your ssh command to get additional logging from your SSH client.
This will return more and more logging from
ssh as you add them. The message you're receiving indicates that the server (the peer) is resetting the connection from your ssh client.
This can happen for a variety of reasons one of which is the host is unable to establish (fork) an SSH daemon for your client to connect to. I would suggest rebooting the RPi as a first level of debugging this.
Reference:
It's very likely that this won't be your issue. If it proves not to be there are additional levels of debugging that you can go through to continue to narrow what's causing your issue here.
msg - debug1: Connecting to localhost port 2222
The port you're using to connect is not a standard port, so you might want to investigate if that's intentional or accidental that you're connecting to the SSHD daemon on the RPi is configured to listen on port 2222 or if you're meaning to connect to the RPi via the default port of 22.
References
slmslm
You must log in to answer this question.Not the answer you're looking for? Browse other questions tagged macosterminalmojavessh .Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commentscommented Feb 3, 2017
commented Feb 3, 2017â¢
edited
added the status/needs feedback label Feb 3, 2017commented Feb 3, 2017â¢
edited
commented Feb 3, 2017
commented Feb 3, 2017â¢
edited
commented Feb 3, 2017
commented Feb 3, 2017
commented Feb 4, 2017
commented Feb 4, 2017
commented Feb 5, 2017
commented Feb 6, 2017
commented Feb 6, 2017
commented Feb 6, 2017
commented Feb 6, 2017
referenced this issue Feb 6, 2017ClosedWhen pushing via SSH: input_userauth_error: bad message during authentication: type 20 #4085added kind/bugkind/third-party labels Feb 6, 2017commented Feb 11, 2017
removed this from the 0.10.0 milestone Feb 11, 2017commented Feb 11, 2017
commented Feb 11, 2017
commented Feb 12, 2017
commented Feb 12, 2017
removed the status/needs feedback label Feb 12, 2017pushed a commit to Martchus/gogs that referenced this issue Jun 7, 2018pushed a commit to Martchus/gogs that referenced this issue Aug 27, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
Ssh_exchange_identification: Read: Connection Reset By Peer Godaddy
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commentscommented Oct 6, 2017
commented Nov 7, 2017
commented Nov 19, 2017â¢
edited
commented Nov 19, 2017
commented Nov 19, 2017
commented Jan 8, 2018
commented Jan 10, 2018
commented Jan 18, 2018
commented Jan 31, 2018
commented Feb 16, 2018
commented Mar 21, 2018
commented Apr 23, 2018
commented Jun 7, 2018â¢
edited
commented Feb 28, 2019â¢
edited
commented Apr 26, 2019
commented Jun 10, 2019
commented Jun 11, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
I keep having this issue, I have restarted the server already and still has this issue I used ssh --v and this is my log
OpenSSH7.8p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/anazodosomto/.ssh/config debug1: /Users/anazodosomto/.ssh/config line 1: Applying options for * debug1: Reading configuration data /etc/ssh/sshconfig debug1: /etc/ssh/sshconfig line 48: Applying options for * debug2: resolvecanonicalize: hostname 68.183.227.27 is address debug2: sshconnectdirect debug1: Connecting to 68.183.227.27 [68.183.227.27] port 22. debug1: Connection established. debug1: identity file /Users/anazodosomto/.ssh/idrsa type 0 debug1: identity file /Users/anazodosomto/.ssh/idrsa-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/iddsa type -1 debug1: identity file /Users/anazodosomto/.ssh/iddsa-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/idecdsa type -1 debug1: identity file /Users/anazodosomto/.ssh/idecdsa-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/ided25519 type -1 debug1: identity file /Users/anazodosomto/.ssh/ided25519-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/idxmss type -1 debug1: identity file /Users/anazodosomto/.ssh/idxmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH7.8 sshexchange_identification: read: Connection reset by peer
please help
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |