Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bash 通过ssh自动使用不同于用户默认的shell_Bash_Ssh_Zsh - Fatal编程技术网

Bash 通过ssh自动使用不同于用户默认的shell

Bash 通过ssh自动使用不同于用户默认的shell,bash,ssh,zsh,Bash,Ssh,Zsh,我们在服务器上使用默认的shell:Bash,但我们中的一些人更喜欢zsh,因此我们正在寻找一种方法,自动设置zsh chsh到zsh我没有选择。怎么样 ssh -t remote_user@remote_host zsh ? 取决于你想要它的“自动”程度。 如果您想要它,只需ssh-t remote即可_user@remote_host应该给您zsh提示,然后您应该考虑bash函数的行。但是在我看来,这是一个非常糟糕的方法。怎么样 ssh -t remote_user@remote_host

我们在服务器上使用默认的shell:Bash,但我们中的一些人更喜欢zsh,因此我们正在寻找一种方法,自动设置zsh

chsh到zsh我没有选择。

怎么样

ssh -t remote_user@remote_host zsh
?

取决于你想要它的“自动”程度。 如果您想要它,只需
ssh-t remote即可_user@remote_host
应该给您zsh提示,然后您应该考虑bash函数的行。但是在我看来,这是一个非常糟糕的方法。

怎么样

ssh -t remote_user@remote_host zsh
?

取决于你想要它的“自动”程度。
如果您想要它,只需
ssh-t remote即可_user@remote_host
应该给您zsh提示,然后您应该考虑bash函数的行。但是在我看来,这是一个非常糟糕的方法。

如果我可以问:为什么
chsh
不是一个选项?因为我们只使用一个用户。。我知道这很糟糕,但不是我的描述:/等等,你只有一个帐户,但你仍然希望不同的用户使用不同的shell。。。哈?用户=真人。。抱歉,未明确定义;-)如果我可以问:为什么
chsh
不是一个选项?因为我们只使用一个用户。。我知道这很糟糕,但不是我的描述:/等等,你只有一个帐户,但你仍然希望不同的用户使用不同的shell。。。哈?用户=真人。。抱歉,未明确定义;-)