SSH配置与修改
ssh文件路径:/etc/ssh/
ssh的日志文件:/var/log/secure
端口修改:./sshd_config
服务启停: service sshd start/stop/restart
git以ssh方式clone
ssh key 生成可参考
http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
http://blog.csdn.net/wangmuming/article/details/22925873
git clone ssh://git@gitlab.xxxxxx.cn:6911/project/projectName.git
当ssh端口变动时,主要有两处变化:
1、增加了 ssh://
2、指定了ssh服务的端口 6911
打通服务器间的公私钥免密登录
必须的要求:
SSH doesn’t like it if your home or ~/.ssh directories have group write permissions. Your home directory should be writable only by you, ~/.ssh should be 700, and authorized_keys should be 600.
You can also get around this by adding StrictModes off to your ssh_config file, but I’d advise against it - fixing permissions is the way to go.
即有几处是需要处理(注意)的:
1、用户家目录组用户权限不能有写(W)权限,如/home/oper目录,可以是755.
2、~/.ssh 目录权限应该是700,~/.ssh/authorized_keys 文件权限应该是600.
笔者:v小周与海神
未来的测试终局----就是拎着一个“工具箱”来干活的角色,最终必然是面向“产品业务”与“开发”的技能
未来的测试终局----就是拎着一个“工具箱”来干活的角色,最终必然是面向“产品业务”与“开发”的技能