secureCRT连接mac本地终端

1.启动sshd服务:
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
停止sshd服务的方法:
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
2.查看是否启动:
sudo launchctl list | grep ssh
下面的输出表示成功启动了:

-    0    com.openssh.sshd

3、打开crt

4.登录后中文乱码的解决方法:
(4.1)secureCRT连接设置编码为UTF-8编码
(4.2)在/etc/profile最后加入 export LANG=zh_CN.UTF-8
(4.3)修改/etc/profile 提示文件只读。 sudo chmod +w /etc/profile
(4.4)执行 source /etc/profile
 

猜你喜欢

转载自blog.csdn.net/LYX_WIN/article/details/106229942