祖瑞科技 全国计算机 网络IT运维社区!

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 2453|回复: 0

如何通过cmd连接SSH Stelnet及Sftp

[复制链接]

198

主题

211

帖子

1195

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1195
发表于 2022-11-23 13:39:55 | 显示全部楼层 |阅读模式
如何通过cmd连接SSH Stelnet及Sftp
通过ssh登录stelnet
C:\Users\Administrator>ssh admin@172.16.10.1 //ssh 用户名@主机地址
如果是外网访问或者以LINUX系统外网访问格式为:ssh root@100.101.102.10 -p 65535 (-p及后面表示外网端口)
  1. Microsoft Windows [版本 10.0.19044.2251]
  2. (c) Microsoft Corporation。保留所有权利。

  3. C:\Users\Administrator>ssh admin@172.16.10.1  

  4. Welcome to zurkj.com
  5. User Authentication
  6. Password:  //输入密码

  7. Welcome to ipgzj.com
  8. *************************************************************************
  9. *         Copyright (C) 2014-2018 Huawei Technologies Co., Ltd.         *
  10. *                           All rights reserved.                        *
  11. *               Without the owner's prior written consent,              *
  12. *        no decompiling or reverse-engineering shall be allowed.        *
  13. *************************************************************************


  14. Info: The max number of VTY users is 10, and the number
  15.       of current VTY users on line is 1.
  16.       The current login time is 2022-12-23 13:36:08+08:00.
  17. <fw1>system-view
  18. Enter system view, return user view with Ctrl+Z.
  19. [fw1]
复制代码

通过ssh登录sftp
C:\Users\Administrator>sftp admin@172.16.10.1 //ssh 用户名@主机地址
  1. Microsoft Windows [版本 10.0.19044.2251]
  2. (c) Microsoft Corporation。保留所有权利。

  3. C:\Users\Administrator>sftp admin@172.16.10.1

  4. Welcome to zurkj.com
  5. User Authentication
  6. Password:  //登录密码
  7. Connected to 172.16.10.1.
  8. sftp> lpwd  //本地当前目录
  9. Local working directory: c:\users\administrator
  10. sftp> pwd  //sftp 当前目录
  11. Remote working directory: /
  12. sftp> lcd c:\users\administrator\desktop  //进入本地目录
  13. sftp> lpwd
  14. Local working directory: c:\users\administrator\desktop
  15. sftp> dir  //查看目录文件
  16. $_install_mod       backup              commands.xml        conf                corefile            default-sdb         
  17. dhcp                diag                ensp                extcollect          hidepkirsakey_n     hidepubkey         
  18. hidesshpubkey       hostkey             hostkey_ecc         isp                 lic_presis.dat      loc                 
  19. log                 logo                netconf             nge                 pki                 private-data.txt   
  20. serverkey           shell_start.log     umdb                update              user                vpnclient           
  21. vrpcfg.cfg          web                 webuserinfo.db      zurkj.cfg
  22. sftp> get zurkj.cfg  //下载文件到本地目录
  23. Fetching /zurkj.cfg to zurkj.cfg
  24. /zurkj.cfg                                                                            100% 4739   674.2KB/s   00:00
  25. sftp>
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
祖瑞(上海)网络科技有限公司
我们在全国范围提供企业IT运维、网络工程、弱电安装、监控安防、计算机产品收售、办公设备耗材等服务!
期待与您的合作!
邮箱:sanne@zurkj.com
电话:021-51850021 18918292296
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|祖瑞科技 全国计算机 网络IT运维社区! ( 沪ICP备16021636号-2 )

GMT+8, 2024-4-20 14:08 , Processed in 0.062636 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表