Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
The community reviewed whether to reopen this question 2 years ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我认为这会起作用:
在
.ssh
目录中创建一个config
文件,如下所示:下面的说明(来自
man ssh_config
)Username
和Port
行也避免了您必须在命令行上提供这些选项,因此您可以使用:I think this will work:
Create a
config
file in your.ssh
directory as follows:Explanation Below (from
man ssh_config
)The
Username
andPort
line avoids you having to give those options on the command line, too, so you can just use: