In a previous article, Linux – Enable auto-login via SSH, I explained how you can eliminate the need to enter your password every time you log on to a specific host.

You might run into a problem where you get the following error message:
“Agent admitted failure to sign using the key”

You then need to type in the password again. Pointless.

To fix it is quite simple:
Continue reading

I cannot believe how simple this is, yet I had to google to figure it out (why oh why didn’t I just read the ‘man’ pages). The syntax for executing a remote command is as simple as:

## SYNTAX
ssh [user]@[remote host] [command]
 
## EXAMPLE
ssh techedemic@192.168.1.200 df -h
 
techedemic@192.168.1.200's password: 
Filesystem                             Size  Used Avail Use% Mounted on
/dev/mapper/td--VG1-td--LV2            443G   89G  332G  22% /
udev                                   993M  4.0K  993M   1% /dev
tmpfs                                  401M  628K  401M   1% /run
none                                   5.0M     0  5.0M   0% /run/lock
none                                  1002M     0 1002M   0% /run/shm
/dev/sda1                              241M   38M  191M  17% /boot