1. 安裝ssh伺服器
sudo apt-get install openssh-server
2.設定ubuntu固定ip
(1) 禁止ipv6
sudo vim /etc/modprobe.d/blacklist.comf
在檔案最後新增 blacklist ipv6,儲存退出
(2) 設定靜態ip
sudo vim /etc/network/inte***ces
在檔案最後新增下面內容
auto eth0
iface eth0 inet static
address 192.168.1.2
gateway 192.168.1.1
netmask 255.255.255.0
儲存退出
(3) 使設定的ip生效
sudo /etc/init.d/networking restart
ip位址設定ok。開啟putty 新增ubuntu的ip位址,即可連線。
如果想動態獲取ip,可在inte***ces中新增以下內容(不用新增上面固定ip的內容了)
auto eth0
iface eth0 inet dhcp
PuTTY遠端訪問Linux(網路配置)
系統 windows 7 64位 虛擬機器 vmware workstation pro 虛擬機器os lubuntu 1.配置虛擬機器ip位址 將vmware網路連線模式改為橋接模式 重啟網絡卡,命令為 etc init.d networking restart 輸入ifconfig命令,找到虛擬...
linux配置網路可以訪問外網總結
1.首先以根使用者登入系統,然後使用lspci grep ethernet命令檢查計算機上的乙太網卡裝置是否被核心檢測到。2.然後使用 ifconfig 命令檢視系統已經識別並已啟用的網路介面。3.vi etc sysconfig network scripts ifcfg eth0 配置網絡卡為e...
Linux下的網路訪問與許可權
功能 讓遠端主機可以通過網路訪問sshd服務,開始乙個安全shell ssh 遠端主機使用者 遠端主機ip root desktop0 ssh root 172.25.0.11 the authenticity of host 172.25.0.11 172.25.0.11 can t beesta...