I am starting to learn how to use a secure shell to log into another computer and either run an application on the remote computer, displayed locally, or to do some work on the remote computer.
I started with some help from gemlog on the Linux Internationals Forum, here : --
http://linuxinternationals.org/phpBB3/viewtopic.php?f=123&t=2300&p=17004#p17004
I checked and found that I already had the sshd installed, called openssh-server.
paul04@paulArtistX:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:23:54:0e:8e:b6
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::223:54ff:fe0e:8eb6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16782 errors:0 dropped:0 overruns:0 frame:0
TX packets:14356 errors:0 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:1000
RX bytes:15767746 (15.7 MB) TX bytes:2440144 (2.4 MB)
Interrupt:219
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:400 (400.0 B) TX bytes:400 (400.0 B)
paul04@paulArtistX:~$ whoami
paul04
paul04@paulArtistX:~$ echo "ssh paul04@192.168.0.3"
ssh paul04@192.168.0.3
paul04@paulArtistX:~$ ssh paul04@192.168.0.3
The authenticity of host '192.168.0.3 (192.168.0.3)' can't be established.
RSA key fingerprint is b5:20:7d:65:9c:7b:8c:5f:0d:56:7b:bf:a3:f3:61:d7.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.0.3' (RSA) to the list of known hosts.
paul04@192.168.0.3's password:
Linux paulArtistX 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
You have mail.
Last login: Mon Aug 17 13:19:25 2009
paul04@paulArtistX:~$ exit
logout
Connection to 192.168.0.3 closed.
paul04@paulArtistX:~$
So that was my first ssh session!
Next to try this from another computer on the network.
From #! CrunchBang Linux 9.4 on my RunDisk USB pendrive.
SecureShellSetup.txt Documentation of setting this up on the pendrive.
From ArtistX 0.6 to Ultimate Edition 8.10 on TestBed
I was able to set up and start SSHD on the TestBed computer, under Ultimate Edition 8.10, and then SSH in using this code : --
paul04@paulArtistX:~$ sudo ssh paul@192.168.0.5
Then pass the password, whereon I was in! I was able to do many things via the CLI as if I was logged into the computer directly. It was also very fast, due to being text-only.
paul@paul-testbed:~/Documents$ exit
logout
Connection to 192.168.0.5 closed.
paul04@paulArtistX:~$
I tried just now to get into my pendrive from another OS on the LAN and succeeded with a password.
When I tried to use 'gksu gedit' I got the usual error message, unable to ,,, so I tried 'vi' with success. However using vi is not so userfriendly!
Paul
Saturday 22nd August 2009
I have this evening, again, used ssh to connect between my ASUS computer and the Test-bed computer.
I remotely installed tightvncserver to the test-bed computer and ran a couple of sessions with krfb on my ASUS and krdc on the test-bed computer.
Friday, October 30 2009, 10:42 PM
wpaul@paul-testbed:~$ whoami
paul
paul@paul-testbed:~$ sudo ssh paul@192.168.0.3
[sudo] password for paul:
The authenticity of host '192.168.0.3 (192.168.0.3)' can't be established.
RSA key fingerprint is b5:20:7d:65:9c:7b:8c:5f:0d:56:7b:bf:a3:f3:61:d7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.3' (RSA) to the list of known hosts.
paul@192.168.0.3's password:
Linux paul-ArtistX07 2.6.27-14-generic #1 SMP Tue Aug 18 16:25:45 UTC 2009 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu Oct 29 20:45:09 2009 from debiantestbed.local
paul@paul-ArtistX07:~$ ls -l | less
paul@paul-ArtistX07:~$ echo "That worked, but 'q' ended the listing"
That worked, but 'q' ended the listing
paul@paul-ArtistX07:~$
This is working in reverse, connecting in to my ASUS computer from the Test-bed computer.
Friday, October 30 2009, 10:46 PM
ASUS system froze up and I entered it with a remote ssh and shut it down with : --
paul@paul-ArtistX07:~$ sudo shutdown now
[sudo] password for paul:
Broadcast message from paul@paul-ArtistX07
(/dev/pts/7) at 23:44 ...
The system is going down for maintenance NOW!
paul@paul-ArtistX07:~$ Connection to 192.168.0.3 closed by remote host.
Connection to 192.168.0.3 closed.
paul@paul-testbed:~$
Comments (0)
You don't have permission to comment on this page.