使用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服务:
停止sshd服务的方法:
2.查看是否启动:
下面的输出表示成功启动了:
--------------
- 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
这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
相关文章推荐
- 简单的为图片添加水印
- 最长公共子序列(LCS)和最长公共子串(LCS)
- IOS学习 CGContextRef学习
- objective-c 中三种产生随机数的方法
- java中volatile关键字的含义
- 在NSString NSNumber NSValue 中一些基本方法的使用和解释
- 按钮点击与弹出时显示不同的图片
- Extjs Widget
- linux软件名规则
- Xcode工程文件打不开:cannot be opened because the project file cannot be parsed
- gdb设置core dump的总结
- QQ好友列表向左滑动出现置顶、删除--第三方开源--SwipeMenuListView
- 残留的linux相关笔记
- Makefile基础
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
- 左右滑动删除ListView条目Item--第三方开源--SwipeToDismiss
- LeetCode 034
- 各种排序算法比较
- jstl中格式化时间戳
- 【AC自动机+DP】[USACO JAN2012 GOLD Problem 1: Video Game Combos]