Linux学习(Ubuntu)遇到的错误

2023-09-25 5 0

1、查看虚拟机的ip相关信息

错将 ifconfig  写成  ipconfig,正确的应该是  ifconfig

 

2、输入ifconfig后显示:Command 'ifconfig' not found,but can be installed with:sudo apt install net-tools

解决:按照它的提示,安装net-tools即可

sudo apt install net-tools

 

 

3、使用PuTTY进行SSH操作时,显示错误:Network error:Connection refused

ssh服务可能没打开

service sshd restart

 

4、虚拟机使用ssh时

解决:

sudo apt-get install openssh-server
sudo service ssh status

第一句安装SSH,第二句启用SSH服务

参考资料:http://ubuntuhandbook.org/index.php/2016/04/enable-ssh-ubuntu-16-04-lts/

代码编程
赞赏

相关文章

在用form 提交请求时,在请求处理完成后想要在JAVA后台设置返回信息状态展示到页面
深入探讨 Java 类加载器(转)
转载到QQ空间的js实现
web项目中参数传递乱码解决方法
tomcat 类加载时找不到class类文件
CRT工具远程Linux系统服务器的 命令