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

 

 

這樣就大功告成啦。

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