
在 Github 提了个问题 , 不好解决 , 对方给了我一个 SSH Public Key , 我把这个
ssh-rsa AAAAB....
保存到 root 用户的 ~/.ssh/authorized_keys 里就可以了吗?
这个文件夹和文件都是我自己建立的 , 本来没有
还需要安装什么 Package/服务或者配置等, 对方才能登陆我的机器?
我需要提供什么其他信息给对方呢?
1 drush 2016-03-16 10:37:08 +08:00 不要给 root, 你应该新建个 user , 另外应该还要设置 permission 才能用。 BTW, 什么问题? |
2 icebitch OP @drush 那倒没关系 , 我学习用的机器 , 部属完就重装了 , Permission 是设置 .ssh 里的所以文件吗 , 我看人家 , 设置为 600 , 可以? |
3 Andy1999 2016-03-16 10:42:37 +08:00 via iPhone service sshd restart 就可以用私钥登录了 |
4 Andy1999 2016-03-16 10:43:03 +08:00 via iPhone 无节操点 肉机+1 |
5 icebitch OP @Andy1999 # service sshd restart sshd: unrecognized service 我试着 apt-get install sshd 但不能安装 提示 unable to locate package sshd |
7 icebitch OP @typcn 谢谢 , 是说要安装这个服务吗? 他提示 , openssh-server is already the newest version 但还是无法执行 `service sshd restart ` |
8 drush 2016-03-16 11:21:10 +08:00 你的是 centos 7? systemctl restart sshd |
10 Tink PRO 还要在 /etc/ssh/sshd_config 里面把证书登陆打开啊 |
11 icebitch OP |
12 icebitch OP @Tink 谢谢! 文件里第 3 行是注释的 , 我把注释去掉了 ``` RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys ``` 酱紫?~ |
13 baichi 2016-03-16 11:58:54 +08:00 via iPad 楼主看看这个 man sshd_config |
15 icebitch OP @shiji 部署 Huginn ``` root@localhost:/home/huginn/huginn# sudo bundle exec rake production:export --trace ** Invoke production:export (first_time) ** Invoke production:check (first_time) ** Execute production:check ** Execute production:export ** Execute production:stop Stopping huginn ... rake aborted! 'sv stop huginn-web-1' exited with a non-zero return value: warning: huginn-web-1: unable to open supervise/ok: file does not exist ... ``` |
16 yolan 2016-03-16 14:17:59 +08:00 |
18 wayslog 2016-03-16 21:00:48 +08:00 这……给你公钥的这位是缺肉鸡么…… |