1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > windows系统上使用openssh client连接远程Linux服务器的日志分析

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

时间:2019-03-01 12:16:23

相关推荐

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.

日志如下,逐行分析。

//这是我windows系统上openSSH的版本号。

OpenSSH_for_Windows_7.9p1, LibreSSL 2.6.5

debug1: Connecting to ec2-18-222-162-171.us-east-2. [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.: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@ MAC: compression: none

debug1: kex: client->server cipher: chacha20-poly1305@ 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.’ 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. ([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@

// 进入交互式会话

debug1: Entering interactive session.

debug1: pledge: network

debug1: console supports the ansi parsing

debug1: client_input_global_request: rtype hostkeys-00@ want_reply 0

Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1021-aws x86_64)

现在可以像使用本地电脑一样操作这台远程Linux服务器了:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。