您的位置:首页 > 其它

使用secureCRT登录mac本地终端

2015-12-23 19:13 316 查看
转自:http://www.php230.com/use-securecrt-login-mac-computer-location.html

这2天在配置MAC的环境,总觉的MAC自带的终端不好用,以前在linux下习惯使用secureCRT了,所以想在MAC下也使用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. 连接mac电脑

ssh localhost

或者

ssh name@127.0.0.1 -p22 (22是ssh的默认端口)

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: