2013年3月21日

scp 免输入密码的方法

摘要: 简单来说就是:本机生成一个私钥和一个公钥,然后把公钥保存到目标机上。别人写的一个小教程,具体如下:第一步:生成密匙对,我用的是rsa的密钥。使用命令 "ssh-keygen -t rsa"[user1@rh user1]$ ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/user1/.ssh/id_rsa):Created directory '/home/user1/.ssh'.Enter passphras 阅读全文

posted @ 2013-03-21 18:38 argb 阅读(2029) 评论(0) 推荐(0) 编辑

crontab 使用方法

摘要: 要使用crontab定时器工具,必须要启动cron服务:service cron startcrontab的语法,如图:crontab各参数说明:-e : 执行文字编辑器来编辑crontab,内定的文字编辑器是VI-r : 删除目前的crontab-l : 列出目前的crontab(查看专用)-i : 会和-r 配合使用,在删除当前的crontab时询问,输入y 则删除注意crontab是分用户的,以谁登录就会编辑到谁的crontabcrontab特殊的符号说明:"*"代表所有的取值范围内的数字。特别要注意哦!"/"代表每的意思,如"*/5&q 阅读全文

posted @ 2013-03-21 13:46 argb 阅读(1295) 评论(0) 推荐(0) 编辑

导航