Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用户名带@符号,连接失败 #141

Open
iuxt opened this issue Aug 28, 2024 · 3 comments
Open

用户名带@符号,连接失败 #141

iuxt opened this issue Aug 28, 2024 · 3 comments

Comments

@iuxt
Copy link

iuxt commented Aug 28, 2024

用户名带@符号,连接失败,

tssh '[email protected]'@1.1.1.1 -p 2222

连接失败

ssh '[email protected]'@1.1.1.1 -p 2222

这个可以正常连接

@lonnywong
Copy link
Member

这是个问题,我有空时再看看怎么优化。

你可以试试这样登录 tssh -l '[email protected]' 10.200.4.188 -p 2222

@iuxt
Copy link
Author

iuxt commented Aug 28, 2024

这是个问题,我有空时再看看怎么优化。

你可以试试这样登录 tssh -l '[email protected]' 10.200.4.188 -p 2222

这样可以,谢谢~

@lonnywong
Copy link
Member

更好的办法是配置 ~/.ssh/config

Host xxx
    HostName 10.200.4.188
    User [email protected]
    Port 2222

然后 tssh xxx 就能登录了,其中 xxx 你可以替换成任意的名字。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants