搭错车的小火柴

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  80 随笔 :: 0 文章 :: 40 评论 :: 19万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

在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
复制代码

 

 

这样就大功告成啦。

posted on   搭错车的小火柴  阅读(2947)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示