[XShell] Xshell connect fail
Xshell connect fail
解決方法: 查看shh 狀態 重啟看看 還是不行 查IP 發現IP換了 所以去xshell session重新設定。(今天網路掛了,重開之後區網IP有更動)
[eric_tu@localhost eric_tu]$ sudo service sshd status
sudo: /var/db/sudo/eric_tu writable by non-owner (040770), should be mode 0700
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for eric_tu:
Redirecting to /bin/systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since 一 2017-06-19 15:03:20 CST; 4min 30s ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 2245 (sshd)
CGroup: /system.slice/sshd.service
└─2245 /usr/sbin/sshd -D
6月 19 15:03:20 localhost.localdomain systemd[1]: Starting OpenSSH server daemon...
6月 19 15:03:20 localhost.localdomain sshd[2245]: Server listening on 0.0.0.0 port 22.
6月 19 15:03:20 localhost.localdomain sshd[2245]: Server listening on :: port 22.
6月 19 15:03:20 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
6月 19 15:05:47 localhost.localdomain sshd[2267]: Accepted publickey for eric_tu from 192.168.171.1 port...:d5
6月 19 15:06:19 localhost.localdomain sshd[2299]: Accepted publickey for eric_tu from 192.168.171.1 port...:d5
6月 19 15:06:35 localhost.localdomain sshd[2333]: Accepted publickey for eric_tu from 192.168.171.1 port...:d5
Hint: Some lines were ellipsized, use -l to show in full.
查IP
[eric_tu@localhost eric_tu]$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:44:07:46 brd ff:ff:ff:ff:ff:ff
inet 192.168.171.129/24 brd 192.168.171.255 scope global dynamic eno16777736
valid_lft 1310sec preferred_lft 1310sec
inet6 fe80::20c:29ff:fe44:746/64 scope link
valid_lft forever preferred_lft forever
IP有動過 記得要去
C:\Windows\System32\drivers\etc\hosts
設定對應的DNS MAP
設定對應的DNS MAP
留言
張貼留言