linux中遇到的CRT连接问题?
在无线网络环境中,Linux的网络配置有下面几个步骤:
1、终端输入 ifconfig 查看IP 在root权限下
2、netconfig 设置网络IP如上查询
3、启动网络服务service network restart
4、ping IP查询是否连通
CRT连接超时有sshd没有启动:service sshd start
CRT连接显示主机无法访问出现:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for '/etc/ssh_host_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_key
可以用以下步骤解决:
执行命令 # cd /etc/ssh
# chmod 0644 *
# chmod 0600 ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
# /etc/init.d/sshd start
starting sshd: [OK]
如果不行 出现报错
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable. [FAILED]
执行
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart
在无线网络环境中,Linux的网络配置有下面几个步骤:
1、终端输入 ifconfig 查看IP 在root权限下
2、netconfig 设置网络IP如上查询
3、启动网络服务service network restart
4、ping IP查询是否连通
CRT连接超时有sshd没有启动:service sshd start
CRT连接显示主机无法访问出现:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for '/etc/ssh_host_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_key
可以用以下步骤解决:
执行命令 # cd /etc/ssh
# chmod 0644 *
# chmod 0600 ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
# /etc/init.d/sshd start
starting sshd: [OK]
如果不行 出现报错
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable. [FAILED]
执行
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart