View Single Post
SteveYoungs's Avatar
Posts: 79 | Thanked: 47 times | Joined on Oct 2011 @ Brisbane, AU
#10
Originally Posted by F2thaK View Post
accessing N9 thru SSH over wifi


how do you do it?

Ive activated developer mode, run SDK connect, got IP and password and attempted to gain access. What user name do you use? I tried root and user. No go.
Well, I've never used the SDK connect thing, but the way I set mine up was...

From terminal on N9:

Code:
devel-su
mkdir .ssh
su - developer
mkdir .ssh
From PC:

Code:
$ scp ~/.ssh/id_dsa.pub root@[N9's IP]:.ssh/authorized_keys
At this point you should be able to ssh from your PC to your N9 as the root user with a simple: `ssh root@IP' with no need for a passwd because it is using SSH keys.

Now all you need to do is copy /root/.ssh/authorized_keys to /home/developer/.ssh/ and make sure you chown it to the right user/group. The easiest way to do that is copy it as root to a temporary file in /home/developer/.ssh/ and then switch to the developer user and then cp it to authorized_keys file.

I tried doing the same thing with the "user" user, but for some reason it would not let me log in via ssh afterwards. But seeing as though the user "developer" has the same userid it doesn't really matter. :-)

Another good thing to do is to create a SSH key pair for the N9's user, "user". Then you can put the .pub on any machine you want to ssh to from your N9. It is very handy being able to log into my desktop at home no matter where I am in the world. :-)
 

The Following 3 Users Say Thank You to SteveYoungs For This Useful Post: