频道直达 - 专题 - 新闻 - 技巧 - 组网 - 开发 - 安全 - web编程 - 图像 - 操作系统 - 数据库 - 教育 - 旅游 - 健康 - 时尚 - 驱动 - 软件 - 游戏 - 多媒体 - ERP - 讨论组

linux的两个机器间传送文件

来源: 作者: 出处:巧巧读书 2006-07-11 进入讨论组
关 键 词:linux  os  ssh  word  wan  

  How to transfer files between two linux boxs without pwd

Let me guess you have two linux boxs ( linux1 and linux2). You want to copy files from linux1 to linux2 without password or do it at crontab.
1. Install SSH
2. Create two users. user1 at liunx1 and user2 at linux2.
3. On linux2, login as user2. do
ssh-keygen -P "" -trsa1 -f ~/.ssh/identity
4. Copy key file to linux1
scp /home/user2/.ssh/identity.pub user1@linux1:/home/user1/.ssh/authorized_keys
5. Change file permission
chmod 600 /home/user2/.ssh/authorized_keys
6. change ssh config file: /etc/ssh/ssh_config
Ad
Host *
ForwardX11 yes
IdentityFile ~/.ssh/identity
Protocol 1
7. Restart sshd
8. login to linux1 as user1.
9.Change file permission
chmod 600 /home/user1/.ssh/identity
10. Restart sshd
Now, you can ssh or secure copy filles by using user1 from linux1 to linux2 without prompt 更多文章 更多内容请看Linux安全应用宝典  Linux防火墙  Linux服务器专题,或进入讨论组讨论。
收藏此文】【 】【打印】【关闭
较早的文章:SAMBA配置详解

较新的文章:apache限制文件下载
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
巧巧读书宗旨
相关专题
·Linux集群技术 (7901篇文章)
·体验Linux的音影世界 (7583篇文章)
·Linux驱动大全 (8362篇文章)
·Linux下的路由的配置与应用 (11288篇文章)
·Linux命令简介 (9387篇文章)
·Linux防火墙 (9230篇文章)
·Linux日志专题 (8022篇文章)
·Linux服务器的安全性能 (19592篇文章)
·揭秘Linux内存管理 (7645篇文章)
·解析Linux文件系统 (7845篇文章)
热点标签: linux  os  ssh  word  wan  
最新论坛文章
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
Photoshop教 程照片处理 照片制作 PS快捷键 抠图
计 算 机 故 障XP系统修复
艺 术 与 设 计设计 流媒体 设计欣赏 边框
计 算 机 安 全ARP
站内频道文章精选
百度推荐,商机无限
搜索您感兴趣的内容
 
Web 本站
巧巧电脑频道编辑信箱  告诉我们您想看的专题或文章