Zhengdeng Lei, PhD

Zhengdeng Lei, PhD

2009 - Present Research Fellow at Duke-NUS, Singapore
2007 - 2009 High Throughput Computational Analyst, Memorial Sloan-Kettering Cancer Center, New York
2003 - 2007 PhD, Bioinformatics, University of Illinois at Chicago

Wednesday, June 8, 2011

SCP without password

http://www.linuxjournal.com/article/8600
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