![]() |
Re: ssh to N900 fails
I have also a problem to connect per SSH to my N900 over WLAN. Yes, I have installed the OpenSSH Client+Server.
This are the things which I tested already: - I can't ping the phone at all, simply no response - I can ping my notebook / servers from the phone - I can connect with UltraVNC to the phone and use it - The SSH client on the phone work's fine and connect's for example to my servers I simply get a timeout when I try to connect to my phone on port 22 per SSH. Any idea's? |
Re: ssh to N900 fails
the phone doesn't respond to pings, so that's expected.
make sure the ssh daemon is running - type in xterm: Code:
ps aux | grep ssh Code:
sudo gainroot |
Re: ssh to N900 fails
Quote:
It is "initctl start sshd" by the way, I restarted it but I still can't connect. |
Re: ssh to N900 fails
Quote:
now try Code:
netstat -pan | grep ssh then you can try Code:
ssh root@127.0.0.1 if local connections work but you still can't connect from your laptop/pc, then we'll have to install sysklogd and enable logging for ssh. |
Re: ssh to N900 fails
Quote:
I used "netstat -a | grep ssh" because -pan / -p didn't work. It display the following informations: tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN netstat: no kernel support for AF INET6 (tcp) netstat: no kernel support for AF INET6 (udp) netstat: no kernel support for AF INET6 (raw) Connecting locally to the SSH server from the N900 itself worked fine. |
Re: ssh to N900 fails
Quote:
":ssh" is equal to the ":22" i was talking about, the -n parameter for netstat should trigger the display of port numbers instead service names. anyhow... do you have some sort of firewall configured which may be blocking port 22 on your wlan? you could try to change the port on which sshd listens: Code:
sudo gainroot (or you edit the file sshd_config some other way, with vim f.ex.). now you can try connecting to the device using the new port: Code:
ssh -p 2022 root@n900.ip |
Re: ssh to N900 fails
Quote:
I tested already another SSH client and my notebook, even my N95 to be sure that the problem is not on the client side. That displayed the following error "Host unreachable (-191)". Any idea why the SSH server accepts only local connections? |
Re: ssh to N900 fails
I fixed mine by rebooting the router, try that.
|
Re: ssh to N900 fails
Quote:
"0.0.0.0:ssh" from the netstat output indicates that it's listening on all interfaces, and the N900 doesn't have a firewall or similar. and i don't think it's actually the ssh daemon. a timeout usually is due to a networking problem. but you say VNC works, so the network should be ok... you can verify that by enabling logging for the ssh daemon, i've described how to do that here. if you don't see any events there while connecting, you have a problem elsewhere. btw, connecting to the N900 when it's on gprs is a whole different story, because you don't get a public IP for direct access. |
Re: ssh to N900 fails
Quote:
your notebook and the N900 are both on the same wlan? which software do you use, which OS? do you connect to the N900's ip or hostname? (what do you use for the VNC connection?) |
All times are GMT. The time now is 02:31. |
vBulletin® Version 3.8.8