<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ssh on R0n9's Blog</title><link>http://blog.880508.xyz/tags/ssh/</link><description>Recent content in Ssh on R0n9's Blog</description><generator>Hugo</generator><language>zh</language><lastBuildDate>Tue, 03 Sep 2024 02:59:34 +0000</lastBuildDate><atom:link href="http://blog.880508.xyz/tags/ssh/index.xml" rel="self" type="application/rss+xml"/><item><title>通过expect登录linux, vim行错乱问题解决方案</title><link>http://blog.880508.xyz/2024/09/03/%E9%80%9A%E8%BF%87expect%E7%99%BB%E5%BD%95linux,%20vim%E8%A1%8C%E9%94%99%E4%B9%B1%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/</link><pubDate>Tue, 03 Sep 2024 02:57:50 +0000</pubDate><guid>http://blog.880508.xyz/2024/09/03/%E9%80%9A%E8%BF%87expect%E7%99%BB%E5%BD%95linux,%20vim%E8%A1%8C%E9%94%99%E4%B9%B1%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/</guid><description>背景当使用 expect 登入你的虚拟主机的时候，你会发现使用 vim，会经常出现行错乱的问题。 原因expect 脚本自动 ssh 登陆，当终端窗口发生变化时，默认 expect 不会将终端窗口大小改变的信号传送到远程的服务器上，因此在使用上会出现很不方便的地方，比如 vim 打开文件时出现串行，要是含有中文的文件可能根本无法编辑。 解决12345678#!/usr/bin/env expect</description></item></channel></rss>