Plug in a LAN cable into the NIC jacket of you laptop and get an IP address through DHCP using the following command:
# dhclient re0
You will get some messages informing you whether you get a lease for an IP address.Then double check with
# ifconfig
the IP address.
Next step would be to check whether
sshd is running and LISTENing on the default port 22:
Code:
# netstat -an -f inet
netstat -an -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
ip 0 0 *.* *.* 17
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 0 192.168.222.20.21869 176.31.230.54.80 TIME_WAIT
tcp 0 0 192.168.222.20.10876 185.22.222.101.80 TIME_WAIT
tcp 0 0 192.168.222.20.45955 185.22.222.86.80 TIME_WAIT
tcp 0 0 192.168.222.20.33386 82.199.132.67.80 TIME_WAIT
tcp 0 0 *.6000 *.* LISTEN
tcp 0 0 127.0.0.1.587 *.* LISTEN
tcp 0 0 127.0.0.1.25 *.* LISTEN
tcp 0 0 *.515 *.* LISTEN
tcp 0 0 *.22 *.* LISTEN
tcp 0 0 127.0.0.1.953 *.* LISTEN
tcp 0 0 127.0.0.10.53 *.* LISTEN
tcp 0 0 192.168.222.20.53 *.* LISTEN
tcp 0 0 127.0.0.1.53 *.* LISTEN
If
sshd is running you should be able to ssh in from your desktop to your laptop. When that works you can copy and paste stuff from laptop to desktop and also copy files.