在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服务器的日志分析相关推荐

  1. 在IDEA中通过密钥认证的方式使用SSH连接远程Linux服务器

    引入 如图,其中Password是通过密码的方式,即你只需要知道远程服务器指定用户的登录密码,你可以连接它:而Key pair则是通过密钥的方式,即你需要在本地服务器上生成公钥证书,然后上传到指定的远 ...

  2. 利用VSCode集成并连接远程Linux服务器上的Docker

    利用VSCode集成并连接远程服务器Docker 为什么要使用VSCode管理docker 为什么要使用VSCode管理docker 官网地址:https://code.visualstudio.co ...

  3. Windows下如何使用VScode连接远程linux服务器进行远程开发

    Windows下如何使用VScode连接远程linux服务器进行远程开发 1. 先上手-成功连接 1.vscode下载安装所需插件:vscode中的remote-ssh插件 安装之后,就会出现上图黄色 ...

  4. 使用PuTTY连接远程Linux服务器

    PuTTY软件 putty 简介 简单的说 putty 是一个开源程序,用来连接服务器.最早的时候,仅仅在window系统上可以使用,后来在其他的系统上也可以运行,比如 类unix, mac .put ...

  5. linux 如何连接远程,如何连接远程LINUX服务器

    如何连接远程LINUX服务器 你好.ssh以. 先要确保linux服务器上的sshd服务是运,查看sshd服务状态:/etc/init.d/sshd status,是running状态就行: 然后要确 ...

  6. vscode连接远程Linux服务器失败

    vscode连接远程Linux服务器失败 文章目录 vscode连接远程Linux服务器失败 解决连接失败 设置密钥免密登录 解决连接失败 问题 vscode会不断的提示你去输入密码,然后一直retr ...

  7. 使用VS code 连接远程linux服务器 —— VSCODE clangd插件 |CSDN创作打卡

    文章目录 连接远程linux服务器 安装OpenSSH 确认VScode SSH是否打开 SSH设置 连接服务器 关闭远程连接 VSCODE clangd插件 在远程服务器安装bear Add Ite ...

  8. jupyternotebook虚拟环境无法连接服务_详解pycharm连接远程linux服务器的虚拟环境的方法_python...

    这篇文章主要介绍了pycharm连接远程linux服务器的虚拟环境的详细教程,本文通过图文并茂的形式给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下 一.前提条件 ...

  9. vsftpd配置连接远程linux服务器,ftprush报错:“530 login incorrect ”

    在本地ftprush安装好vsftpd,设置好用户后连接远程linux服务器,报错:"530 login incorrect"或"login incorrect" ...

最新文章

  1. 几个与PPT相关的Blog
  2. [ruby on rails] 跟我学之(6)显示指定数据
  3. [密码学基础][每个信息安全博士生应该知道的52件事][Bristol Cryptography][第4篇] P类复杂问题
  4. Qt文档阅读笔记-Q_PROPERTY解析及实例
  5. Vue将echarts数据导出成excel文件
  6. 剪映怎么把无字幕的英文视频翻译成制作成中文字幕?(附教程+剪映字幕翻译工具免费下载)...
  7. 释放数据价值的真正法宝,数据要素市场化开发迫在眉睫
  8. centos 6.8 请教笔记本上的虚拟机如何配置无线网络 桥接联网
  9. 163邮箱登录不了Outlook解决方案
  10. 基础理论知识复习(上)
  11. Ubuntu 安装 TP_LINK驱动 TL-WDN5200H 2.0无线网卡
  12. 树莓派成功使用 TPLINK WDN5200H网卡( 芯片 rtl8821cu )
  13. 曾任5家上市企业大学校长李乾老师
  14. 基辛格和张忠谋对骂,源于Intel已到生死关头
  15. 网络通信基础知识(一)
  16. 浅析小流域综合治理评价指标体系和评价方法
  17. 菜单栏管理工具菜单栏管理工具当选Bartender4 Mac
  18. 本地html运行网址,如何在本地运行的网页上创建指向本地文件的链接?
  19. Android React Native使用原生UI组件
  20. C#索引器-索引器的定义

热门文章

  1. SendMessage 循环按1 到6 F1到F8_2
  2. LVS与keepalived
  3. Microsoft WPF VS Adobe Apollo
  4. 前端请求,后台http 连接输出流交给ServeletResponse 下载文件
  5. Java中hashCode()方法以及HashMap()中hash()方法
  6. 经典DL论文研读(part3)--Improving neural networks by preventing co-adaptation of feature detectors
  7. PyTorch基础(part4)
  8. sklearn自学指南(part48)--截断奇异值分解和潜在语义分析
  9. 关于GitHub下载巨慢问题的解决方案
  10. 第三次学JAVA再学不好就吃翔(part14)--基础语法之循环语句注意事项