常用命令 默认22端口访问 ssh x.x.x.x 指定端口访问 ssh x.x.x.x -p port 指定用户访问(默认是MacOS当前用户) ssh user@x.x.x.x [-p port] 设置主机别名,快捷访问 vi ~/.ssh/config 复制如下内容粘贴至config文件末尾(按需修改) # xx Server Host alias HostName x.x.x.x Port port User root 使用 ssh alias 参考链接 使用mac自带ssh连接远程服务…
指令:ssh username@server.address.com 事例:wangmingdeMacBook-Pro:~ xxxxxxxxxx$ ssh root@XXXX.net The authenticity of host 'xxxx.net (xxx.xxx.xxx.xxx)' can't be established. RSA key fingerprint is 13:82:21:f3:47:ac:15:44:f5:d0:c4:65:a0:5c:cc:06. Are you su…