root@openclaw:# apt install openssh-client -y
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
openssh-client is already the newest version (1:9.6p1-3ubuntu13.15).
openssh-client set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
root@openclaw:# ssh-keygen -t ed25519 -C “openclaw-ai-maintenance”
Generating public/private ed25519 key pair.
Enter file in which to save the key (/root/.ssh/id_ed25519): #直接回车使用默认路径 /.ssh/id_ed25519
Enter passphrase (empty for no passphrase): #直接回车留空(实现完全免密,适合自动化运维)
Enter same passphrase again: #直接回车留空(实现完全免密,适合自动化运维)
Your identification has been saved in /root/.ssh/id_ed25519
Your public key has been saved in /root/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:7v8i59WDyoV2ALG9O8/WFngcAeurLQD3vstTKz12IMo openclaw-ai-maintenance
The key‘s randomart image is:
+–[ED25519 256]–+
| . .. |
| + .. |
| o … |
| . .. o . |
| oS.o .o . |
| .. o++++ |
| ..+=+=o. |
| .E+B@ +. |
| .=X@=+ |
+—-[SHA256]—–+
root@openclaw:# ssh-copy-id root@10.9.254.51
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/root/.ssh/id_ed25519.pub”
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys
root@10.9.254.51’s password: #首次需输入对方root用户密码
Number of key(s) added: 1
Now try logging into the machine, with: “ssh ‘root@10.9.254.51’”
and check to make sure that only the key(s) you wanted were added.
root@openclaw:~# ssh root@10.9.254.51
Last login: Fri Apr 17 10:11:47 2026 from 10.9.254.72
[root@poc ~]#
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/269419.html