[minicom] How to send command to remote machine
1. Do the following command
Generate a rsa keypair:
# ssh-keygen (Local machine create rsa keypair)
then copy it on the server with one simple command:
# ssh-copy-id hostname (ex : ssh-copy-id root@192.168.100.100)
you can now log in without password:
# ssh hostname (ex : ssh root@192.168.100.100 or ssh 192.168.100.1
2. Then send the command as follow
Ex1
ssh -t 111.2.1.31 -l happy "minicom -S /home/happy/minicom_script -D /dev/ttyUSB1"
Ex2
ssh happy@111.2.1.123 "echo 1 > /home/freeman/ha.txxxxxxt"
2013年2月21日 星期四
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言