文章分类 -  linux

摘要:if [ `whoami` = "root" ];then echo "root user" else echo "not root user" fiid -u current user idif [`id -u` -eq 0 ]thenecho "root user"elseecho "not r 阅读全文
posted @ 2016-11-15 19:47 馨墨 阅读(1377) 评论(0) 推荐(0)
摘要:ssh-keygen -b 2048 -t rsa #这里的-b 2048 是密钥加密的长度,最好设大点,有消息称美国有黑客解决 ssh的密钥进行破解。#http://bbs.yuloo.com/thread-860154-1-1.html 直接回车3次 key文件会保存在~/.ssh目录下 这时候 阅读全文
posted @ 2016-06-14 10:55 馨墨 阅读(111) 评论(0) 推荐(0)