maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   ssh on home network PROBLEMS (https://talk.maemo.org/showthread.php?t=18108)

directore 2008-03-20 02:35

ssh on home network PROBLEMS
 
Need some pointers on the following:

Configuration - a DSL modem feeding to a wireless router. My desktop is on cabled ethernet, n800 obviously on router provided access point.

I need to ssh between n800 and my mac. Mac settings were trivial - one check mark and it tells me now: "To log in to this computer remotely, type "ssh jmg@192.168.0.101".

On n800 I installed openssh , entered new root password and rebooted.

Q. a) Connecting from Mac

Code:

ssh user@192.168.0.102
The authenticity of host '192.168.0.102 (192.168.0.102)' can't be established.
RSA key fingerprint is 19:20:d7:bc:18:df:0f:ea:4b:a0:3e:b4:29:fe:e0:3d.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.0.102' (RSA) to the list of known hosts.
user@192.168.0.102's password: (entered openssh root password)
Permission denied, please try again.

Tried to change my user password on n800 using passwd command it tells me that my password cannot be changed. Tried to execute passwd with sudo using openssh root password but n800 will not accept it.

Suggestions?


(peripheral question - I had to guess my n800 local IP number (192.168.0.102 above)- as it appears there is no prescribed way to find it. Correct?)
------------

Q. b) connecting from n800 to my mac

Code:

ssh jmg@192.168.0.101
connect to  jmg@192.168.0.101: Network is unreachable.

How come my mac sees n800 and n800 doesn't see my mac?

brontide 2008-03-20 02:39

Re: ssh on home network PROBLEMS
 
Check your WiFi router. Looks for a setting called "isolation". It's a "security" feature where two wireless clients are not allowed to see each other.

Since you are on a mac check in the os2008 topic for my post on adding a mac friendly name.local name to your device so you don't have to fiddle with ip addresses.

brontide 2008-03-20 02:41

Re: ssh on home network PROBLEMS
 
Quote:

Originally Posted by directore (Post 157603)
Tried to change my user password on n800 using passwd command it tells me that my password cannot be changed. Tried to execute passwd with sudo using openssh root password but n800 will not accept it.

when executing a command is sudo you enter the USER password, not the root password. You might be thinking of su rather than sudo.

brontide 2008-03-20 02:44

Re: ssh on home network PROBLEMS
 
http://www.internettablettalk.com/fo...ad.php?t=17681

"Using Bonjour to name your NIT"

superstar 2008-03-20 02:47

Re: ssh on home network PROBLEMS
 
Make sure that the ssh server is running "sshd net start" and verify the ssh port is open "netstat -an | grep LISTEN" port 22 is the default port.

directore 2008-03-20 02:51

Re: ssh on home network PROBLEMS
 
... Check your WiFi router. Looks for a setting called "isolation". It's a "security" feature where two wireless clients are not allowed to see each other.
..
I don't have too wireless clients, n800 is wireless, mac in on ethernet (same router physically), plus I don't see "isolation" option on my router.

--
Re passwords:

a) what is the scope of openssh installation defined "root" password? It doen't work with su or sudo?

b) how do I change my USER password?

(su and sudo use the same password (root) don't they?)

---

more q later after i digest the rest.

brontide 2008-03-20 02:55

Re: ssh on home network PROBLEMS
 
If you have having trouble I would install "becomeroot" which will set you up to do a "sudo gainroot" without a password. From there you can passwd root and reset root's password and try again. It's probably just a typo that's screwing you up.

su = use root's password ( or the accout you are su'ing to )

sudo = use the user's password you are coming from

directore 2008-03-20 03:09

Re: ssh on home network PROBLEMS
 
Quote:

Make sure that the ssh server is running "sshd net start" and verify the ssh port is open "netstat -an | grep LISTEN" port 22 is the default port.
dd
- well that stupid thing doen't know where to find sshd. Isn't it true that openssh installation should modify shell config so that the system can find whatever openssh installs?

- executing "/usr/sbin/sshd net start"
generates error message - Extra argument net

- "netstat -an | grep LISTEN" generates a lot of error messages "warning got bogus unix line", but the first entry is: tcp 0 0.0.0:22 listen. Is that it?

brontide 2008-03-20 03:21

Re: ssh on home network PROBLEMS
 
Quote:

Originally Posted by directore (Post 157617)
- "netstat -an | grep LISTEN" generates a lot of error messages "warning got bogus unix line", but the first entry is: tcp 0 0.0.0:22 listen. Is that it?

Looks like it. Another stupid question, you don't have dropbear-server installed since it's a openssh alternative.

directore 2008-03-20 03:47

Re: ssh on home network PROBLEMS
 
I deinstalled the bear before installing openssh so there should be no problem here theoretically speaking.

I'm kind of slow today, it turns out that openssh password is for user "root" so I can now ssh from my mac to n800. Great, no more having to type anything on n800. What a relief that i can use OS X Terminal to talk to it! You people think I will be able to change my "user" password using passwd when logged in as "root'? And if so how?

Also i tried to run

Code:

usr/sbin/sshd
without "net start" as I see no such options on man pages and it tells me I have no hostkey defined. Great. Now how do I define one? I found one example on the net, viz.

Code:

First I generate a specific SSH key on the N800 using 'ssh-keygen -f ~/.ssh/sshforward -t rsa' with no passphrase
.

but the syntax is totally screwed up. Anybody has something working for passkeys?

Faz 2008-03-20 04:13

Re: ssh on home network PROBLEMS
 
Quote:

Originally Posted by directore (Post 157627)
You people think I will be able to change my "user" password using passwd when logged in as "root'? And if so how?

passwd user

directore 2008-03-20 04:27

Re: ssh on home network PROBLEMS
 
Never mind, I managed to change my "user" password and generate a new key. SSH seems to be running now. I love the idea of brontite "Using Bonjour to name your NIT" but unfortunately his instructions: http://www.internettablettalk.com/fo...ad.php?t=17681


Code:

As root, edit /etc/avahi/avahi-daemon.conf
dont work for me I have NO avahi running or installed on freshly installed (a few days back) OS2008. Is there a place that has a deb for n800?


------

Again never mind, I'm real slow today, found the deb package in the App Manager. It's called Bonjour support. Who would have guessed?

brontide 2008-03-20 12:40

Re: ssh on home network PROBLEMS
 
Interesting, I didn't install avahi ( as far as I know ) I just presumed it was part of os2008. I'll add the note about "Bonjour support" to my post.

directore 2008-03-23 09:35

Re: ssh on home network PROBLEMS
 
Just a note, Bonjour as enabled per instructions here doesn't work for me very well, the connection (from mac to n800) is so slow that is basically unusable, ssh-ing via IP number works always.

Duncan 2008-03-23 09:42

Re: ssh on home network PROBLEMS
 
I just set my n810 to use a fixed IP address on my home network and then added it to the hosts file on my PC. Not manageable if you have a network with lots of devices, but simple and works.

The only catch with this is that you also have to set fixed DNS server addresses so if they change for the network you have to remember to change them on the tablet also. for this reason a reserved IP would be better than fixed but I don't think my router knows how to do that.

qwerty12 2008-03-23 10:02

Re: ssh on home network PROBLEMS
 
I actually have a problem too with SSH over Wifi. When I use usbnetworking, it works though.

I get same results in Linux and windows:

Quote:

ssh root@192.168.0.4The authenticity of host '192.168.0.4 (192.168.0.4)' can't be established.
RSA key fingerprint is c2:09:41:77:1f:65:00:c1:9c:a7:13:24:dc:eb:b8:84.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.4' (RSA) to the list of known hosts.
root@192.168.0.4's password:
After I put in right password, it stays connecting forever.


All times are GMT. The time now is 18:54.

vBulletin® Version 3.8.8