精彩PuTTY 中文教程(解决乱码、X窗口、自动登陆等问题)
http://dzh001.blog.51cto.com/2767/40624
PuTTY 是一个跨平台的远程登录工具,包含了一组程序,包括:
-
PuTTY (Telnet 和 SSH 客户端)
-
PSCP (SCP 客户端, 命令行下通过 SSH 拷贝文件,类似于 Unix/Linux 下的 scp 命令)
-
PSFTP (SFTP 的命令行客户端,类似于 FTP 的文件传输,只不过使用的是 SSH 的 22 端口,而非 FTP 的 21 端口,类似于 Unix/Linux 下的 sftp 命令)
-
PuTTYtel (仅仅是一个 Telnet 客户端)
-
Plink (命令行工具,执行远程服务器上的命令)
-
Pageant (PuTTY、PSCP、Plink 的 SSH 认证代理,用这个可以不用每次都输入口令了)
-
PuTTYgen (用来生成 RSA 和 DSA 密钥的工具).
备份 PuTTY 的设置
regedit /e PuTTY.config.reg "HKEY_CURRENT_USER\Software\SimonTatham\PuTTY"
删除 PuTTY 的设置
putty.exe -cleanup
用 SSH 来传输文件
PuTTY 提供了两个文件传输工具
PSCP (PuTTY Secure Copy client)
PSFTP (PuTTY SFTP client)
PSCP 通过 SSH 连接,在两台机器之间安全的传输文件,可以用于任何 SSH(包括 SSH v1、SSH v2) 服务器。
PSFTP 则是 SSH-2 中新增的特性,使用的是新的 SFTP 协议,使用上与传统的 FTP 类似。事实上 PSCP 如果发现 SFTP 可用,PSCP就会使用 SFTP 协议来传输文件,否则还是 SCP 协议。PSFTP 与 PSCP 相比,PSFTP 的优点是可以与服务器进行交互,遍历服务器上的文件系统,在一个会话中上传或下载多个文件。而 PSCP 只能一次传输一个文件,传输完毕后立刻终止会话。
C:\>pscp
C:\>psftp -h
psftp> help
! run a local command
bye finish your SFTP session
cd change your remote working directory
chmod change file permissions and modes
close finish your SFTP session but do not quit PSFTP
del delete files on the remote server
dir list remote files
exit finish your SFTP session
get download a file from the server to your local machine
help give help
lcd change local working directory
lpwd print local working directory
ls list remote files
mget download multiple files at once
mkdir create directories on the remote server
mput upload multiple files at once
mv move or rename file(s) on the remote server
open connect to a host
put upload a file from your local machine to the server
pwd print your remote working directory
quit finish your SFTP session
reget continue downloading files
ren move or rename file(s) on the remote server
reput continue uploading files
rm delete files on the remote server
rmdir remove directories on the remote server
http://live.haliluya.org/weblog/2007/07/25/psftp/
http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter6.html
其他可选的 SFTP 客户端
FileZilla :
http://filezilla.sf.net
WinSCP :
http://www.winscp.net