I'm on my rocking Linux system. Me and my friend used to do SSH logins in each other systems. He's in Mandi and I'm in Shimla(INDIA).
In GNU/linux or other unix like OS's we are using openSSH. This is a secure way for remote login into a linux shell or also for windows using Putty, written by BSD guys. SSH is secure 'cause the data that has to be flown in networks is encrypted. So, no chance for eavesdroppers to check what's the data flowing in the network. So here's an easy way to SSH:
Make sure you've started the SSH service on both your system. You can check it by looking for sshd in your processes. This is the SSH daemon running in background and waiting for the ssh services to start on your system. Then it's all simple, you are on the shell likely bash on Linux:
$ssh username@host
It will ask for your password on that machine, and you're in.It's for local hosts for remote hosts we have to do the following:
$ssh ip_remotehost
If we want to login as same user as on our current working machine.
If we want to login as some other user then:
$ssh -l username ip_remotehost

You can use $ssh -C remotehost for compression of data over network.
The way of authentication will be the same, it'll ask for password and you're in. And now you can work on the system as a normal user. Have a look at the picture.
Now you are in you working on the system and working on the system with all the commands you are authorized to execute. Still you'll need to copy files between the machines you can you scp command which is also available when you're not on an ssh session. It's use is also very simple as cp command for copy. The difference is we have to specify the ip's of the machine for remote and user@host over same network.
scp command
For safe transmission of data over network we use scp command. The data will be transmitted in encrypted packets. So, no one will be able to understand what the data is. Usage:
$scp user@host1:file1 user@host2:file2

And most of the option you can use with scp are same as of cp, and manual pages are also there for your help. So, what are you waiting for? A network machine...
And yeah, OpenSource Rocks!!!

No comments:
Post a Comment