Wednesday, 28 July 2010

use ssh to execute command remotely and scp to download file via ssh

ssh root@192.168.248.9 'ls /etc'
ssh root@192.168.248.9 'cat /etc/passwd'
scp root@192.168.248.9:/etc/passwd ./passwd_remote
scp root@192.168.248.9:/home/administrator/live-cd.iso .

combine xargs then it is marvelous

No comments:

Labels

Search This Blog