copy from your local machine to remote
1. At you local machine (e.g. Steve Server):
ssh-keygen -t rsa
#then enter, enter(default file)
all default (no phrase)
cd /home/leiz/.ssh
scp ~/.ssh/id_rsa.pub NUSSTF\\gmslz@172.25.138.12:/home/gmslz/.ssh/id_ras.pub.FromSteve
2. At remote machine (e.g. Cluster)
cd /home/gmslz/.ssh/
ls -la
cat id_ras.pub.FromSteve >>authorized_keys
DONE
you can scp from local (steve) to remote (cluster) without password
PS: get you local ip if no ifconfig in your local machine
netstat -an|grep "tcp"
172.25.136.25
No comments:
Post a Comment