[英]VS Code Extension: Remote - SSH. How do I specify a ssh command for connection
I have a server to which the connection SSH is as follows:我有一个服务器,连接 SSH 如下:
ssh -t admin@192.168.1.10 /bin/bash
If I don't specify /bin/bash
explicitly, it runs another application instead of the shell (don't have access in the server to change this).如果我没有明确指定
/bin/bash
,它会运行另一个应用程序而不是 shell(没有访问服务器来更改它)。
How do I configure the /bin/bash shell
command in Remote-SSH extension?如何在 Remote-SSH 扩展中配置
/bin/bash shell
命令? The current configuration is:当前配置是:
Host 192.168.1.10
HostName 192.168.1.10
User admin
RequestTTY yes
You can use RemoteCommand
您可以使用
RemoteCommand
Host 192.168.1.10
HostName 192.168.1.10
User admin
RequestTTY yes
RemoteCommand /bin/bash
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.