![]() |
2010-02-11
, 11:06
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#22
|
ps aux | grep ssh
sudo gainroot initctl sshd start
The Following User Says Thank You to SubCore For This Useful Post: | ||
![]() |
2010-02-11
, 20:17
|
Posts: 543 |
Thanked: 151 times |
Joined on Feb 2010
@ Germany
|
#23
|
the phone doesn't respond to pings, so that's expected.
make sure the ssh daemon is running - type in xterm:
you should get a line containing "sshd" and ":22" somewhere. if not, your daemon isn't running, and you can start it by rebooting the device or by issuingCode:ps aux | grep ssh
Code:sudo gainroot initctl sshd start
![]() |
2010-02-11
, 20:30
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#24
|
netstat -pan | grep ssh
ssh root@127.0.0.1
![]() |
2010-02-11
, 23:06
|
Posts: 543 |
Thanked: 151 times |
Joined on Feb 2010
@ Germany
|
#25
|
yes, seems ok.
now try
that lists network connections / listeners, and that's where you should find a line with ":22", indicating that sshd listens on port 22 (sorry that i wrote :22 should be seen with ps auxCode:netstat -pan | grep ssh)
then you can try
on the device to check if local connections work.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.
![]() |
2010-02-12
, 00:01
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#26
|
sudo gainroot cd /etc/ssh cp sshd_config sshd_config.bak cat sshd_config.bak | sed 's/Port 22/Port 2022/' > sshd_config initctl stop sshd initctl start sshd
ssh -p 2022 root@n900.ip
![]() |
2010-02-12
, 00:43
|
Posts: 543 |
Thanked: 151 times |
Joined on Feb 2010
@ Germany
|
#27
|
hehe sorry i'm used to certain parameters i use on desktop / server systems all the time. -pan is one of them
":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:
with these commands, you create a backup file of your current config, and then use the tool "sed" to change the value for Port from 22 to 2022.Code:sudo gainroot cd /etc/ssh cp sshd_config sshd_config.bak cat sshd_config.bak | sed 's/Port 22/Port 2022/' > sshd_config initctl stop sshd initctl start sshd
(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
![]() |
2010-02-12
, 00:49
|
Posts: 891 |
Thanked: 499 times |
Joined on Nov 2009
@ UK
|
#28
|
![]() |
2010-02-12
, 00:59
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#29
|
![]() |
2010-02-12
, 01:02
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#30
|
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)".
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?