ii ssh 1:5.1p1-5 secure shell client and server (metapackage)
ii openssh 1:5.1p1-6.maem Secure shell client and server
beaureve:~# ps -efa | grep sshd root 19225 1 0 Mar10 ? 00:00:00 /usr/sbin/sshd
Nokia-N810-43-7:~# ps -efa | grep sshd 1195 root 3484 SW /usr/sbin/sshd
beaureve:~# ifconfig eth0 | grep "inet addr" inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
Nokia-N810-43-7:~# ifconfig wlan0 | grep "inet addr" inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
192.168.1.101 n810
192.168.1.100 beaureve
/home/martin >ssh root@n810 root@n810's password: Nokia-N810-43-7:~# pwd /root
/home/martin >ssh root@n810 root@n810's password: Nokia-N810-43-7:~# su - user BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $
user@n810:~> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/a/.ssh/id_rsa): Created directory '/home/a/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/a/.ssh/id_rsa. Your public key has been saved in /home/a/.ssh/id_rsa.pub. The key fingerprint is: 3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 user@n810 user@n810:~> ssh martin@beaureve mkdir -p .ssh martin@beaureve's password: user@n810:~> cat .ssh/id_rsa.pub | ssh martin@beaureve 'cat >> .ssh/authorized_keys' martin@beaureve's password:
~ $ ssh martin@beaureve date Thu Mar 11 16:36:33 CET 2010
X11Forwarding yes X11DisplayOffset 10
beaureve:~# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd. beaureve:~#
Nokia-N810-43-7:/etc/ssh# su - user
~ $ ssh -X martin@beaureve -f xterm ~ $ Warning: No xauth data; using fake authentication data for X11 forwarding. Warning: Cannot convert string "nil2" to type FontStruct