![]() |
2009-12-01
, 19:59
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#2
|
![]() |
2009-12-01
, 20:07
|
|
Posts: 361 |
Thanked: 108 times |
Joined on Sep 2008
|
#3
|
I installed openssh (server and client) and tried setting up public key authentication to login into the N900 from my Ubuntu machine, but it's not working.
I generated the keys in Ubuntu with ssh-keygen, copied id_rsa.pub to /home/user/.ssh/authorized_keys in the N900 and it still asks for password when I try
ssh user@N900_ip from the Ubuntu machine.
I made sure the folder .ssh is chmod 700 in the N900 and the file /home/user/.ssh/authorized_keys is chmod 600.
(Public authentication works using the N900 as client to login into Ubuntu.)
I also cannot find the ssh logs in the N900 itself.
I thought it would be /var/log/auth.log, as in Ubuntu, but it's not.
Any suggestions?
I apologize it this has been discussed in some other thread.
The Following User Says Thank You to dantonic For This Useful Post: | ||
![]() |
2009-12-01
, 20:08
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#4
|
![]() |
2009-12-01
, 20:19
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#5
|
I don't have an N900
I assume just like any linux, and even the N800, just cd to .ssh,
that is /home/user/.ssh
open the file known_hosts
and clear the contents.
Do this on both ubuntu and the N900, and when you try to ssh next time it should ask if you want to trust the device and then automatically setup a key again.
Again I don't own an N900 but this works for me on my N800 and ubuntu desktop
***EDIT***
sorry idk how much linux experience you have:
you may have to be root when opening the file to be able to save it.
on N900 idk what editor is available. On N800 I just use leafpad, so from the command line I would type:
sudo leafpad .ssh/known_hosts
and this would open the file to edit in leafpad
![]() |
2009-12-02
, 01:31
|
|
Posts: 226 |
Thanked: 195 times |
Joined on Nov 2009
@ Malaysia
|
#6
|
![]() |
2009-12-02
, 04:18
|
Posts: 486 |
Thanked: 251 times |
Joined on Oct 2009
|
#7
|
![]() |
2009-12-02
, 06:36
|
Posts: 543 |
Thanked: 181 times |
Joined on Aug 2009
@ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
|
#8
|
![]() |
2009-12-02
, 09:59
|
Posts: 32 |
Thanked: 9 times |
Joined on Nov 2009
@ Norway
|
#9
|
Couple of things to try:
- on embedded type devices (maybe the N900?), the /var directory is sometimes dumped into the /tmp directory... making the directory you're looking for /tmp/var/log
find /var -mmin -5 -ls
![]() |
2009-12-02
, 12:14
|
Posts: 268 |
Thanked: 304 times |
Joined on Oct 2009
@ Orlando, USA
|
#10
|
I made sure the folder .ssh is chmod 700 in the N900 and the file /home/user/.ssh/authorized_keys is chmod 600.
Nokia-N900-42-11:~/.ssh# pwd /root/.ssh Nokia-N900-42-11:~/.ssh# ls -l -rw------- 1 root root 1124 Nov 27 04:05 authorized_keys -rw-r--r-- 1 root root 1080 Nov 25 21:59 known_hosts Nokia-N900-42-11:~/.ssh#
I generated the keys in Ubuntu with ssh-keygen, copied id_rsa.pub to /home/user/.ssh/authorized_keys in the N900 and it still asks for password when I try
ssh user@N900_ip from the Ubuntu machine.
I made sure the folder .ssh is chmod 700 in the N900 and the file /home/user/.ssh/authorized_keys is chmod 600.
(Public authentication works using the N900 as client to login into Ubuntu.)
I also cannot find the ssh logs in the N900 itself.
I thought it would be /var/log/auth.log, as in Ubuntu, but it's not.
Any suggestions?
I apologize it this has been discussed in some other thread.