【Mac】MAC下使用Terminal通过SSH远程登陆服务器
terminal
The new Windows Terminal and the original Windows console host, all in the same place!
项目地址:https://gitcode.com/gh_mirrors/term/terminal
免费下载资源
·
由于xshell没有mac的版本,一般情况下可以在mac终端里使用ssh命令来实现登陆服务器,其中username为要连接服务器的 用户名 ,serverIP为要连接服务器的 ip地址 。
sudo ssh <username>@<serverIP>
# username为连接服务器的用户名,serverIP为请求连接的服务器IP地址
但是当连接机房服务器时,机房服务器可能采用 网关服务器 + 内网服务器 的模式,因此只有通过网关服务器端口进行转发才能连接目的服务器,所以要采用 -p 命令,其中-p后接的端口号为目的网关服务器的转发端口号。
sudo ssh <username>@<serverIP> -p 端口号
# serverIP此处为网关服务器IP地址
如下所示,直接通过 sudo ssh zzw@192.168.1.101 连接内网服务器地址会超时;
而通过 sudo ssh zzw@115.156.135.250 -p 8101 或 sudo ssh root@115.156.135.250 -p 8101 进行连接即可成功。
GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec
"HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 5 天前
e83434ff
Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!).
Bonus points:
- we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly
- ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether.
Validated command palette with multiple high contrast themes. See PR thread for demo.
Closes #17914 5 天前
更多推荐
已为社区贡献6条内容
所有评论(0)