在ubuntu系统刚安装好之后ifconfig命令和开启远程连接都是不起作用的,如果需要使ifconfig起作用需要安装一个小工具,如果想开启远程连接的话也需要安装open-ssh工具。
开启ifconfig:
sudo apt install net-tools
安装好这个工具后ifconfig命令就可以使用了。
卡其远程连接:
安装SSH服务
sudo apt install ssh
启动SSH服务
sudo /etc/init.d/ssh start
至此就可以远程连接ubuntu系统了,但是只能使用其他用户,但是root用户是登陆不了的。
默认是不允许root远程登录的,可以再配置文件开启
#Ubuntu默认未安装vim,请先安装vim,命令如下:
sudo apt install vim
sudo vim /etc/ssh/sshd_config
在打开sshd_config后,找到PermitRootLogin without-password 修改为PermitRootLogin yes
重启SSH服务
service ssh restart
即可通过winscp 、putty使用ROOT权限远程登录。
启用root用户:sudo passwd root
修改后就可以远程使用root用户登陆了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)