我想将默认的 Fedora bash shell 更改为 ssh (作为超级用户)

我想将默认的 Fedora bash shell 更改为 ssh (作为超级用户)

我想将我的默认 Fedora bash shell 更改为 ssh(作为超级用户)。

因此,使用 chsh 命令给出了地址 /bin/ssh。注销超级用户。但以 su 身份登录后,我无法登录并遇到此问题:-

问题

usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]

[-D [bind_address:]port] [-E log_file] [-e escape_char]

[-F configfile] [-I pkcs11] [-i identity_file]

[-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]

[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]

[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]

[user@]hostname [command]

此外,终端将当前 shell 回显为 bash。

答案1

你似乎在谈论苹果和橙子。 Bash、csh、zsh 等都是shells. Secure Shell (SSH) 是一种用于连接到远程计算机的通信协议(和程序)。 SSH 将您连接到远程计算机上运行的 shell,但它本身并不是 shell。这就是为什么尝试设置/bin/ssh为 shell 失败的原因。

相关内容