내 ~/.ssh/config
파일에는 다음 정의가 있습니다.
Host limping
HostName 192.168.1.102
user <user>
터미널에 입력하면
ssh limping
오류가 발생했습니다.
ssh: connect to host 192.168.1.102 port 22: No route to host
그럼 내가 입력할 때
ssh <user>@192.168.1.102
연결이 작동하고 ssh limping
다음을 사용하여 연결할 수도 있습니다.
없어진 물건 있어요?
yotam@Orange:/tmp$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlp2s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp2s0
netstat -a
연결이 성공하든 실패하든 결과는 동일합니다.
yotam@Orange:/tmp$ ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:104308 errors:0 dropped:0 overruns:0 frame:0
TX packets:104308 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:11862688 (11.8 MB) TX bytes:11862688 (11.8 MB)
wlp2s0 Link encap:Ethernet HWaddr d8:fc:93:cd:c6:9d
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9a05:8ee4:e73f:1be6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2526887 errors:0 dropped:0 overruns:0 frame:0
TX packets:1145245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2760597592 (2.7 GB) TX bytes:193162848 (193.1 MB)
yotam@Orange:~/Applications/CondMount$ ssh -v limping
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /home/yotam/.ssh/config
debug1: /home/yotam/.ssh/config line 35: Applying options for limping
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.102 [192.168.1.102] port 22.
debug1: connect to address 192.168.1.102 port 22: No route to host
ssh: connect to host 192.168.1.102 port 22: No route to host