public:it:ssh

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
public:it:ssh [2022/02/18 10:34] – [Tips] oakfirepublic:it:ssh [2023/05/25 14:42] (当前版本) – [Ubuntu] oakfire
行 10: 行 10:
     * 编辑''/etc/ssh/sshd_config'',设置此项为no <code>PasswordAuthentication no</code>     * 编辑''/etc/ssh/sshd_config'',设置此项为no <code>PasswordAuthentication no</code>
     * 重启 ''sshd'' 服务     * 重启 ''sshd'' 服务
 +
 +  * 欢迎词:动态生成后位于''cat /run/motd.dynamic''
 +    * 彩色标题词:可先安装''sudo apt install figlet toilet'',再编辑''/etc/update-motd.d/00-header'', 添加 ''toilet -f standard -F metal oakfire''
 ===== Tips ===== ===== Tips =====
   * 如果 openssh 版本[[https://www.openssh.com/txt/release-8.8|不低于 8.8]], 有可能[[https://www.openssh.com/txt/release-8.2|禁用 RSA-1 算法]]导致 key 失效,详见 [[https://confluence.atlassian.com/bitbucketserverkb/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html| 此说明]], 在参数添加 ''-vvvv'' 开启日志的ssh 中可见 <code>debug1: send_pubkey_test: no mutual signature algorithm</code>, 解决办法是用 ed25519 来生成公私钥 <code bash>ssh-keygen -t ed25519 -C "your_email@example.com"</code>   * 如果 openssh 版本[[https://www.openssh.com/txt/release-8.8|不低于 8.8]], 有可能[[https://www.openssh.com/txt/release-8.2|禁用 RSA-1 算法]]导致 key 失效,详见 [[https://confluence.atlassian.com/bitbucketserverkb/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html| 此说明]], 在参数添加 ''-vvvv'' 开启日志的ssh 中可见 <code>debug1: send_pubkey_test: no mutual signature algorithm</code>, 解决办法是用 ed25519 来生成公私钥 <code bash>ssh-keygen -t ed25519 -C "your_email@example.com"</code>
  • public/it/ssh.1645151654.txt.gz
  • 最后更改: 2022/02/18 10:34
  • oakfire