XShell 在 Mac 上的平替:Royal Tsx

在windows 上,我们都是通过 Xshell 来访问远端不同系统下的服务器,通过 XFTP 的可视化界面给远端服务器上传文件,从而比较好的达到远程控制终端的目的。

但是在 XShell 没有支持 Mac 的客户端,我们可以用 Royal TSX 这个平替,支持 shell 和 file transfer的能力。下载地址:https://www.royalapps.com/ts/mac/download ,安装过程可参考: https://juejin.cn/post/7177193482790895671 ,也可参考官方的guide:https://docs.royalapps.com/r2021/?tabs=tab-id-rtx,必须安装 Terminal 和 File Transfer 这两个plugin。

 

不过这个工具并不是完全免费的,官方说法”Royal TS/X can be downloaded and used for free without any time limit, license key or registration. This allows you to get started quickly and if you only have a small environment you can continue using Royal TS/X free of charge in "Shareware Mode".If you want to evaluate Royal Server or Royal TS/X without any limitations before purchasing a license, please request a free, 30-day trial license.“。小型环境可以免费使用,看到有文章说是,免费使用最多只能建立10个 connection,不过对普通用户来说,够用了。

在配置 Credentials 的时候,注意 username、 password 、private key file、passphrase 这些都是 必填项。

 

 

最后配好时候,连接,如果出现 "permission XXXX for XXX are too open……",按照错误提示的意思。除了所有者之外,该 Private Key File 秘钥文件不能被其他人访问,只要将所属组和其他人的read权限取消即可。需要执行 “chmod 0600 PrivateFilePath

文件”,改下秘钥文件的读写权限。

// 改变文件权限之前
username@usernamedeMacBook-Pro .ssh % ls -l PrivateFilePath 
-rw-r-----@ 1 username  staff  1751  1  5 17:49 PrivateFilePath

// 改变文件权限
username@usernamedeMacBook-Pro .ssh % chmod 0600  PrivateFilePath

// 改变文件权限之后
username@usernamedeMacBook-Pro .ssh % ls -l PrivateFilePath      
-rw-------@ 1 username  staff  1751  1  5 17:49 PrivateFilePath

 

 

这样就大功告成啦。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章