随笔分类 -  Linux

SSH使用技巧
摘要:SSH免输入密码原理是依赖证书去认证,从而免除密码输入。通过ssh-keygen生成一对公私钥,是否使用passphrase可以根据个人喜好。(其实使用证书就是为了方便而已,我是不喜欢其他密码了。) 然后scp家目录下的.ssh/id_rsa.pub(或者dsa等公钥文件)到目的机器上。命令过程:本地ssh-keygenscp ~/.ssh/id_rsa.pub B:ssh到B主机(这里第一次必须... 阅读全文
posted @ 2008-10-28 16:41 YuYii 阅读(3215) 评论(0) 推荐(0) 编辑
解决 "device is busy" 的问题
摘要:使用LINUX时,当设备Mount多了经常会遇到设备umount失败,又会忘记到底开过什么..举例:# mount /dev/hda5 /mnt1#cd /mnt/1# umount /mnt/1/umount: /mnt/1: device is busyumount: /mnt/1: device is busy可以使用fuser命令查看# fuser /mnt/1//mnt/1/: 2756... 阅读全文
posted @ 2008-10-22 18:23 YuYii 阅读(1054) 评论(0) 推荐(0) 编辑