跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 使用 Windows Terminal 替代 Xshell
未分類
13 5 月 2020

使用 Windows Terminal 替代 Xshell

使用 Windows Terminal 替代 Xshell

資深大佬 : godlovesxcjtest 11

使用过一段时间的 Xshell 和 Mobaxterm,功能确实强大,但是我只是需要一个简单的 ssh 管理软件,有 ssh 功能、能帮我记住 ip 就可以,正好赶上 WSL2 即将正式推出,那就折腾一下 windows terminal 吧,反正 wsl2 发布了肯定会用。

在配置里面添加几行就可以使用了

{   "commandline": "powershell.exe ssh [email protected]",      "guid": "{2d774c23-c36e-4361-8991-9712e5af58c8}",      "hidden": false,      "icon": "C:\Users\godlo\.ssh\linux.png",      "name": "N1-Armbian" } 

这是效果图,配置 SSH 公钥登录后,使用确实很方便,还可以快捷键快速打开对应标签,直接连接 使用 Windows Terminal 替代 Xshell 但是有一个问题,就是不支持 ZModem 协议,也就不能使用 rz 和 sz 这样的命令,目前只能使用 sftp 简单的替代下 如下图: 使用 Windows Terminal 替代 Xshell

大家有什么好的办法么?

大佬有話說 (10)

  • 資深大佬 : codehz

    (我建议用专用软件代替,喜欢 uwp 的可以用 Token2Shell (

  • 資深大佬 : MeteorCat

    xshell 主要是密钥证书管理,不是什么花里胡哨的

  • 主 資深大佬 : godlovesxcjtest

    @codehz #1 这不是为信仰充值嘛

  • 資深大佬 : iamwho

    ~.sshconfig:”???”

  • 主 資深大佬 : godlovesxcjtest

    @MeteorCat #2 我说他花里胡哨了吗??,我自己也挺喜欢 xshell 的

  • 資深大佬 : ragnaroks

    只有我是当 cmd 替代用的?

  • 資深大佬 : Norie

    win10 就是最好的 Linux 发行版

  • 資深大佬 : lionseun

    @iamwho 我就是用这个

  • 主 資深大佬 : godlovesxcjtest

    @lionseun #8 所以更改客户端的 ssh config 可以支持[xyz]Modem 吗?具体怎样做呢

  • 資深大佬 : ps1aniuge

    ## 目的:打开一个新 win term 标签后,则进入 linux 种的,powershell 远程命令行。

    ## win term:
    “commandline” : “C:\Program Files\PowerShell\7-preview\pwsh.exe -noexit -file d:\ps 脚本\ssh_to_ps62.ps1”,

    ## ssh_to_ps62.ps1
    param
    (
    [String]$目的 ip 地址 = ‘192.168.1.62’,
    $端口 = 22,
    $账户 = ‘root’,
    $ssh_key_文件路径 = “$env:USERPROFILE.sshid_rsa”
    )

    $msg = @’
    需要 ssh.exe,低版本 win 请去这里下载: https://github.com/PowerShell/Win32-OpenSSH/releases
    建议在 Windows Terminal 中使用:
    “commandline” : “C:\Program Files\PowerShell\7-preview\pwsh.exe -noexit -file d:\ps 脚本\centos7.ps1”,
    ‘@

    Write-Warning $msg

    if ($PSVersionTable.psversion.major -ge 6)
    {
    Write-Host -ForegroundColor green “进入目的 ip [$目的 ip 地址] “
    Enter-PSSession -Session (New-PSSession -HostName $目的 ip 地址 -Port $端口 -UserName root -KeyFilePath $ssh_key_文件路径)
    }
    else
    {
    Write-Error ‘需要 powershell 版本 v6 。v7 更好’
    }

    ##linux:
    linux 下需要安装 powershell,并修改 /etc/ssh/sshd_config 文件。
    使用这里的脚本,可以一键安装,修改。

    https://gitee.com/chuanjiao10/kasini3000_agent_linux

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具