![]() |
accessing N9 thru SSH over wifi
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. -------------------------------------------------------------------------------- Post PR1.1, to enable remote root login again (or rather make it controllable via /etc/ssh/sshd_config like before): Code:
echo -e 'mkdir -m 0755 -p /var/run/sshd\nexec /usr/sbin/sshd $SSHD_OPTS' >> /etc/default/ssh |
Re: accessing N9 thru SSH over wifi
Quote:
Code:
devel-su (password is rootme) EDIT: Not sure you need to be root for that, simple 'passwd' as user could work too. |
Re: accessing N9 thru SSH over wifi
thanks!.......
|
Re: accessing N9 thru SSH over wifi
Any problems connecting over 3G? Wifi seems to work fine for me, but attempting to connect to an N9 that is on 3G connection fails.
|
Re: accessing N9 thru SSH over wifi
Quote:
|
Re: accessing N9 thru SSH over wifi
Quote:
i've added the ip address that my putty is on to the N9 openssh config as an allowed host (previously only the common intranet addresses were there) I think i had this working before i started messing with some of the settings, which is why it would be nice if someone confirmed that they can connect normally over 3G via SSH |
Re: accessing N9 thru SSH over wifi
You don't normally get a public IP when on 2G/3G, in which case you won't be able to connect from a device outside of that network.
|
Re: accessing N9 thru SSH over wifi
Quote:
Also: if you do a passwd without devel-su then it refuses to change the password. |
Re: accessing N9 thru SSH over wifi
Quote:
|
Re: accessing N9 thru SSH over wifi
Quote:
From terminal on N9: Code:
devel-su Code:
$ scp ~/.ssh/id_dsa.pub root@[N9's IP]:.ssh/authorized_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. :-) |
All times are GMT. The time now is 01:53. |
vBulletin® Version 3.8.8