天天看点

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

secureCRT连接mac本地终端

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

继续阅读