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?


All times are GMT. The time now is 06:42.

vBulletin® Version 3.8.8