SSH not working!

Every time I try to ssh into a machine, it always says permission denied, but when doing it from another machine it works. Here is the output:


http://pastebin.com/shf86fdS


Just to be clear, I have not setup any keys and am using passwords.

iMac, OS X Yosemite (10.10.1), Mid 2010 model

Posted on Nov 27, 2014 7:40 AM

Reply
8 replies

Nov 27, 2014 9:03 AM in response to kusti756

What is "a machine"? What is "another machine"? When using ssh, you are connecting from one machine, the client, to another machine, the server. To debug connection problems, you need to try with different clients and/or servers. But you have to be 100% clear and specific about which machine is the client and which machine is the server in each attempt.

Nov 27, 2014 10:51 AM in response to kusti756

ssh has been known to get upset if the permissions for key files and directories on the client are too relaxed.

The same is true for the remote.


When permissions are too relaxed ssh assumes that someone could have injected code or settings into those files or directories to subvert your ssh session making no longer a Secure Shell.


"man ssh" and search for 'permission'


If your raspberry pi has a log where sshd records connection requests, check it to see why the raspberry pi refused the connection.

Nov 28, 2014 6:17 AM in response to kusti756

I finally figured it out. I guessed that it was trying to send a publickey for some reason, but failed and when it prompted me for the password it failed, because I hadn't set keys and it was using that. So now, when I ssh from the Mac into the raspberry pi, I add a colon after the username which disables keys. Example:

ssh username:@192.168.1.1


😁 Thanks for trying!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SSH not working!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.