Dell Unity:配置无密码 SSH 访问
Summary: 如何在 Unity 中配置无密码 SSH 访问。
Acest articol se aplică pentru
Acest articol nu se aplică pentru
Acest articol nu este legat de un produs specific.
Acest articol nu acoperă toate versiunile de produs existente.
Instructions
- 在客户端上生成密钥对。
[user@rhel8 ~]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): <<< keep empty Enter passphrase (empty for no passphrase): <<< keep empty Enter same passphrase again: <<< keep empty Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The key fingerprint is: SHA256:eVWNNWLhKu/CUTELDr6K4YwCnD1q1TfZG7MumlGW/JY user@rhel8.peeps.lab The key's randomart image is: +---[RSA 3072]----+ | +o=.| | . . oo.o o| | . o . =. | | ...o +. | |. o . =S.o. | |.o = .o=.*+ | |. * +.o oE*. | |.+ + .o..=. | |o o. o... | +----[SHA256]-----+
- 更改为
.ssh目录下看到一个新的 res 目录。
[user@rhel8 ~]$ cd .ssh/
- 使用
ls以查看文件。
[user@rhel8 .ssh]$ ls id_rsa id_rsa.pub known_hosts
- 重命名
id_rsa.pub重定向到authorized_keys。
[user@rhel8 .ssh]$ mv id_rsa.pub authorized_keys
- 使用
ls以查看文件。
[user@rhel8 .ssh]$ ls authorized_keys id_rsa known_hosts
- 使用
SCP要将密钥上传到”.ssh“目录中。
[user@rhel8 .ssh]$ scp authorized_keys service@XX.XX.XX.XX:/home/service/.ssh ****************************************************************************** * Welcome to EMC UnityVSA 12GB - VIRT1234ABCDEF-spa - c4dev_PIE_8259R-5.3.0.0.5.120 * Serial Number: VIRT1234ABCDEF * Unisphere IP : XX.XX.XX.XX * Unisphere IP : fe80::260:1670:29c3:2667 ****************************************************************************** Password:(Unity Service (SSH) Password) authorized_keys
- 测试无密码访问。
[root@rhel8 .ssh]# ssh service@x.x.x.xx ****************************************************************************** * Welcome to EMC UnityVSA 12GB - VIRT1234ABCDEF-spa - c4dev_PIE_8259R-5.3.0.0.5.120 * Serial Number: VIRT1234ABCDEF * Unisphere IP : x.x.x.xx * Unisphere IP : xx80::xxx:xxxx:xxxx:2667 ****************************************************************************** Last login: Mon Jul 21 19:03:53 2025 from x.x.x.254 01:30:32 service@VIRT1234ABCDEF spa:~/user# No Password was asked
Additional Information
如果配置无密码登录的目的是运行 uemcli 脚本中的命令,请参阅知识库文章 Dell Unity:UEMCLI 命令停止运行。
添加 -sslpolicy accept 选项可防止 uemcli 脚本中的命令因证书过期而停止。
Produse afectate
Dell EMC UnityProduse
Dell EMC Unity Family |Dell EMC Unity All Flash, Dell EMC Unity Hybrid, Dell EMC UnityVSA Professional Edition/Unity Cloud EditionProprietăți articol
Article Number: 000348009
Article Type: How To
Ultima modificare: 26 Jun 2026
Version: 2
Găsiți răspunsuri la întrebările dvs. de la alți utilizatori Dell
Servicii de asistență
Verificați dacă dispozitivul dvs. este acoperit de serviciile de asistență.