Networking using arp, ssh, and scp

To list all machines in the address resolution table

arp -a

We can use the Secure Shell (SSH)  network protocol for secure data communication, remote command-line login, remote command execution. First make sure the service is running .

service sshd status

service sshd start

Make it run automatically

chkconfig sshd on

Add a user to another linux machine and ssh to that machine as that user

useradd -m des

Enter your password twice when asked

Now ssh to that machine

ssh des@

To secure copy the  folder myfolder over the network to /home/joe

scp -r des@ /home/joe

To copy the file passwd to a remote machine as newpw

scp /etc/passwd joe@