Chinaunix首页 | 论坛 | 博客
  • 博客访问: 434728
  • 博文数量: 101
  • 博客积分: 578
  • 博客等级: 中士
  • 技术积分: 872
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-12 22:24
文章分类

全部博文(101)

文章存档

2015年(1)

2014年(83)

2012年(17)

我的朋友

分类: 其他平台

2014-03-20 13:26:08

1.

直接运行/usr/sbin/sshd出现

 

Could not load host key: /etc/ssh_host_rsa_key

Could not load host key: /etc/ssh_host_dsa_key

 

生成一下key

/usr/bin/ssh-keygen -t dsa -f /etc/ssh_host_dsa_key

/usr/bin/ssh-keygen -t dsa -f /etc/ssh_host_dsa_key

然后配置一下/etc/sshd_config(这个路径和linux上不同),端口,监听地址看一眼就知道了,然后再次输入

/usr/sbin/sshd -f /etc/sshd_config即可开启ssh服务

注意,mac os x遵循freebsd上的约定,默认root不能登陆ssh(而linux上是可以的),开启root允许登陆需要在

/etc/sshd_config中配置PermitRootLogin yes

 

2.未测试

系统偏好设置-》共享-》远程登陆开启


阅读(2497) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~