PowerShell内用 ssh -Y选项登录远程主机后终端的文件颜色消失

匿名
2023-12-26T16:26:46+00:00

我一直在PowerShell内用ssh来远程登录我的树莓派(ssh xxx@raspberrypi),登录后字体会突然改变, 文字也会根据文件类型的不同显示不同的颜色(因为树莓派是linux而linux的终端自带不同类型文件显示不同颜色的功能)。有一次我尝试在ssh后面加上-Y选项(ssh -Y xxx@raspberrypi)来登录后这些颜色突然消失了,就算我退出登录再次用ssh不加任何选项颜色也没有显示回来。我试过重启PowerShell但是颜色还是没有回来,我也试过重启电脑但是颜色也没有回来。

为什么颜色会突然消失?以及我该怎么让ssh后的远程终端文字颜色重新显示?

Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 性能 | Windows 桌面和 shell 体验

锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。 为了保护隐私,对于已迁移的问题,用户个人资料是匿名的。

0 个注释 无注释
{count} 票

1 个答案

排序依据: 非常有帮助
  1. 匿名
    2023-12-27T06:41:30+00:00

    Hello

    Thank you for posting in Microsoft Community forum.

    Based on the description, I understand your question is related to the SSH.

    Since there are no engineers dedicated to SSH in this forum. in order to be able to get a quick and effective handling of your issue, I recommend that you repost your question in the Q&A forum, where there will be a dedicated engineer to give you a professional and effective reply.

    Here is the link for Q&A forum.

    Questions - Microsoft Q&A

    Have a nice day.

    Best Regards,

    Wesley Li

    0 个注释 无注释