日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

windows系统上使用openssh client连接远程Linux服务器的日志分析

發布時間:2023/12/19 linux 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 windows系统上使用openssh client连接远程Linux服务器的日志分析 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在windows系統上使用ssh進行遠程連接到一臺Linux服務器:

ssh -i C:\Users\i042416.ssh\KOI.pem -L 9221:localhost:9229 ubuntu@ec2-18-222-162-171.us-east-2.compute.amazonaws.com

日志如下,逐行分析。

//這是我windows系統上openSSH的版本號。
OpenSSH_for_Windows_7.9p1, LibreSSL 2.6.5
debug1: Connecting to ec2-18-222-162-171.us-east-2.compute.amazonaws.com [18.222.162.171] port 22.

//成功建立連接。

debug1: Connection established.
debug1: identity file

// 這是我本地的private key文件。
C:\Users\i042416\.ssh\KOI.pem type -1
debug1: identity file C:\Users\i042416\.ssh\KOI.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.9

// 遠程Linux服務器的OpenSSH版本號。
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
debug1: Authenticating to ec2-18-222-162-171.us-east-2.compute.amazonaws.com:22 as ‘ubuntu’

debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:I1d9+QWgoLGIrXK8NO0J0LmuvTUj1o6I/P//Cjs1rUA
debug1: Host ‘ec2-18-222-162-171.us-east-2.compute.amazonaws.com’ is known and matches the ECDSA host key.

debug1: Found key in C:\Users\i042416/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\Users\i042416\.ssh\KOI.pem explicit
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: C:\Users\i042416\.ssh\KOI.pem

// 認證成功
debug1: Authentication succeeded (publickey).
Authenticated to ec2-18-222-162-171.us-east-2.compute.amazonaws.com ([18.222.162.171]:22).
debug1: Local connections to LOCALHOST:9221 forwarded to remote address localhost:9229
debug1: Local forwarding listening on ::1 port 9221.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 9221.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Requesting no-more-sessions@openssh.com

// 進入交互式會話
debug1: Entering interactive session.
debug1: pledge: network
debug1: console supports the ansi parsing
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1021-aws x86_64)

現在可以像使用本地電腦一樣操作這臺遠程Linux服務器了:

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的windows系统上使用openssh client连接远程Linux服务器的日志分析的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。