Active Topics

 


Reply
Thread Tools
Rassilon7's Avatar
Posts: 220 | Thanked: 41 times | Joined on Oct 2008
#1
Hi

I have been trying to log into my NiT using this method

$ cd .ssh on my mac
$ scp id_rsa.pub root@IP.address.NiT:.ssh/authorized_keys

This created the file authorised_keys on my NiT from my Mac.

However I still get asked for a password when I try to ssh

root@IP.address.NiT

Any idea on how I might get this to work?

Thank you.
 
iancumihai's Avatar
Posts: 274 | Thanked: 143 times | Joined on Jun 2007 @ Romania
#2
just curious, does auth_keys has no permissions for others and group. some ssh servers require it to be strictly secret before using it.
 
Rassilon7's Avatar
Posts: 220 | Thanked: 41 times | Joined on Oct 2008
#3
Nice idea but I changed it to:

Nokia-N810-23-14:~/.ssh# ls -l
-rw------- 1 root root 400 Feb 9 15:06 authorised_keys
-rw-r--r-- 1 root root 442 Jan 26 11:44 known_hosts

And still no joy.
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#4
Originally Posted by Rassilon7 View Post
Nice idea but I changed it to:
-rw------- 1 root root 400 Feb 9 15:06 authorised_keys
Maybe this is the problem. The file has to be named "authorized_keys" (z instead of s).
 

The Following User Says Thank You to pycage For This Useful Post:
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#5
And it needs to be in
Code:
/root/.ssh/
.
 
Rassilon7's Avatar
Posts: 220 | Thanked: 41 times | Joined on Oct 2008
#6
*Shakes fist at the sky* "damn you English language"

It was in the right folder but with the wrong name! Thanks for spotting that.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:08.