Ubuntu网卡配置,节点配置

1.配置一个静态IP

使用dhclient分配一个IP地址也可以自己设

sudo dhclient
ifconfig

 

网卡配置

sudo vim /etc/network/interfaces

auto enp0s3
iface enp0s3 inet static
address 192.168.127.159
netmask  255.255.255.0
gateway  192.168.127.255

 

保存,重启,生效

reboot

2.连接

ifconfig

wincp 连接

错误:winscp 服务器拒绝了SFTP连接,但它监听FTP连接

解决错误

sudo apt-get install openssh-server
service sshd start

安装之后就可以成功的连接上

参考

https://www.bilibili.com/video/BV1bA411b7vs

https://blog.csdn.net/stay_zezo/article/details/80718369

https://blog.csdn.net/qq_36470908/article/details/78297164

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值