Monthly Archives: November 2007

dont wast time

防止浪费时间的窍门
If the real work that needs doing is offline, disable the internet for an hour at a time.
如果这件事情不需要上网就可以完成,把网断掉。
Turn email checks into an hourly habit, not an “as the box gets mail” habit.
延长查看电子邮件的周期。
Don’t answer your cell phone when working on something important. Call back later.
如果手头的工作很重要,工作期间不要接电话,回头再打过去就是了。
If you can’t work at work, negotiate finding a new place to [...]

use scp to send file

1. 安装SSH
2. 创建2个用户. user1在liunx1和user2在linux2.
3. 在linux2用user2登录
ssh-keygen -P “” -trsa1 -f ~/.ssh/identity
4. 复制密钥到linux1
scp /home/user2/.ssh/identity.pub user1@linux1:/home/user1/.ssh/authorized_keys
5. 修改SSH文件属性
chmod 600 /home/user2/.ssh/authorized_keys
6. 修改ssh配置文件 /etc/ssh/ssh_config
AdHost *ForwardX11 yesIdentityFile ~/.ssh/identityProtocol 1
7. 重启SSHD
8. 用user1登录linux1
9.修改SSH文件属性
chmod 600 /home/user1/.ssh/identity
10. 重启SSHD
现在,你可以在user1在linux1和linux2之间用SSH安全的复制文件。
SCP命令
从本地导出到远程
[root@localhost ~]# scp /var/ALTEIL2/test_222.tsv root@192.168.0.77:/var/ALTEIL2/999.tsv
从远程导入到本地
[root@localhost ~]# scp root@192.168.0.77:/var/ALTEIL2/999.tsv /var/ALTEIL2/test_222.tsv
原文:
How to transfer files between two linux boxs without pwd
Let me guess you have two linux boxs ( linux1 and linux2). [...]