Reply
Thread Tools
Posts: 60 | Thanked: 22 times | Joined on Feb 2008
#1
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's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#2
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.
 

The Following User Says Thank You to brontide For This Useful Post:
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#3
Originally Posted by directore View Post
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's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#4
 

The Following User Says Thank You to brontide For This Useful Post:
superstar's Avatar
Posts: 202 | Thanked: 28 times | Joined on Jan 2008
#5
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.
 

The Following User Says Thank You to superstar For This Useful Post:
Posts: 60 | Thanked: 22 times | Joined on Feb 2008
#6
... 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's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#7
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
 
Posts: 60 | Thanked: 22 times | Joined on Feb 2008
#8
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's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#9
Originally Posted by directore View Post
- "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.
 
Posts: 60 | Thanked: 22 times | Joined on Feb 2008
#10
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?

Last edited by directore; 2008-03-20 at 04:01.
 
Reply


 
Forum Jump


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