{"id":145158,"date":"2019-05-24T08:12:58","date_gmt":"2019-05-24T00:12:58","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=145158"},"modified":"2019-05-20T10:15:00","modified_gmt":"2019-05-20T02:15:00","slug":"linux-ssh-hostname","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-ssh-hostname.html","title":{"rendered":"\u5728 Linux \u4e2d\u521b\u5efa SSH \u522b\u540d"},"content":{"rendered":"

\u5982\u679c\u4f60\u7ecf\u5e38\u901a\u8fc7 SSH \u8bbf\u95ee\u8bb8\u591a\u4e0d\u540c\u7684\u8fdc\u7a0b\u7cfb\u7edf\uff0c\u8fd9\u4e2a\u6280\u5de7\u5c06\u4e3a\u4f60\u8282\u7701\u4e00\u4e9b\u65f6\u95f4\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 SSH \u4e3a\u9891\u7e41\u8bbf\u95ee\u7684\u7cfb\u7edf\u521b\u5efa SSH \u522b\u540d\uff0c\u8fd9\u6837\u4f60\u5c31\u4e0d\u5fc5\u8bb0\u4f4f\u6240\u6709\u4e0d\u540c\u7684\u7528\u6237\u540d\u3001\u4e3b\u673a\u540d\u3001SSH \u7aef\u53e3\u53f7\u548c IP \u5730\u5740\u7b49\u3002\u6b64\u5916\uff0c\u5b83\u907f\u514d\u4e86\u5728 SSH \u5230 Linux \u670d\u52a1\u5668\u65f6\u91cd\u590d\u8f93\u5165\u76f8\u540c\u7684\u7528\u6237\u540d\u3001\u4e3b\u673a\u540d\u3001IP \u5730\u5740\u3001\u7aef\u53e3\u53f7\u3002<\/p>\n

\u5728 Linux \u4e2d\u521b\u5efa SSH \u522b\u540d<\/strong><\/div>\n

\u5728\u6211\u77e5\u9053\u8fd9\u4e2a\u6280\u5de7\u4e4b\u524d\uff0c\u6211\u901a\u5e38\u4f7f\u7528\u4ee5\u4e0b\u4efb\u610f\u4e00\u79cd\u65b9\u5f0f\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u8fdc\u7a0b\u7cfb\u7edf\u3002<\/p>\n

\u4f7f\u7528 IP \u5730\u5740\uff1a<\/p>\n

$ ssh 192.168.225.22<\/pre>\n

\u6216\u4f7f\u7528\u7aef\u53e3\u53f7\u3001\u7528\u6237\u540d\u548c IP \u5730\u5740\uff1a<\/p>\n

$ ssh -p 22 sk@192.168.225.22<\/pre>\n

\u6216\u4f7f\u7528\u7aef\u53e3\u53f7\u3001\u7528\u6237\u540d\u548c\u4e3b\u673a\u540d\uff1a<\/p>\n

$ ssh -p 22 sk@server.example.com<\/pre>\n

\u8fd9\u91cc<\/p>\n