Putty中的复制与粘贴

与Linux打交道,免不了要从Windows上SSH到Linux或者在Windows和Linux之间传文件。平时我比较常用的就是SSH Secure Shell和Putty。

SSH Secure Shell有比较好用的文件传输GUI工具,但是终端工具不支持编码选择,一直受中文乱码困扰,除非你更改服务器的编码,另外版本比较旧了现在用的基本都是2003年的3.2.9版本。

由于SSH Secure Shell中文乱码的原因,有时不得不使用Putty,但是一直比较郁闷Putty下复制文字的方法,前段时间偶然看Putty的帮助文档,看到以下内容:

PuTTY's copy and paste works entirely with the mouse. In order to copy text to the clipboard, you just click the left mouse button in the terminal window, and drag to select text. When you let go of the button, the text isautomatically copied to the clipboard. You do not need to press Ctrl-C or Ctrl-Ins; in fact, if you do press Ctrl-C, PuTTY will send a Ctrl-C character down your session to the server where it will probably cause a process to be interrupted.

Pasting is done using the right button (or the middle mouse button, if you have a three-button mouse and have set it up; see section 4.11.2). (Pressing Shift-Ins, or selecting ‘Paste’ from the Ctrl+right-click context menu, have the same effect.) When you click the right mouse button, PuTTY will read whatever is in the Windows clipboard and paste it into your session,exactly as if it had been typed at the keyboard. (Therefore, be careful of pasting formatted text into an editor that does automatic indenting; you may find that the spaces pasted from the clipboard plus the spaces added by the editor add up to too many spaces and ruin the formatting. There is nothing PuTTY can do about this.)

好吧,原来Putty里,选择即复制,右键即粘贴。另外Putty还提供自己的scp工具——pscp,以后可以把SSH Secure Shell丢角落里,一心一意用Putty了。。。


另外推荐几篇SSH相关的文章:

ssh隧道技术简介

SSH原理与运用(一):远程登录

SSH原理与运用(二):远程操作与端口转发

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值