putty和psftp命令行参数

article/2025/10/18 9:47:25

putty和psftp命令行参数

 

https://the.earth.li/~sgtatham/putty/latest/w32/putty.zip

https://the.earth.li/~sgtatham/putty/latest/w64/putty.zip

https://the.earth.li/~sgtatham/putty/latest/puttydoc.zip

https://the.earth.li/~sgtatham/putty/latest/putty-0.72.tar.gz

https://the.earth.li/~sgtatham/putty/latest/putty-src.zip

https://git.tartarus.org/?p=simon/putty.git

 

 

putty.exe [-ssh | -telnet | -rlogin | -raw] [user@]host
Example: putty -ssh -l vagrant -pw vagrant -P 2222 127.0.0.1-V        print version information and exit-pgpfp    print PGP key fingerprints and exit-v        show verbose messages-load sessname  Load settings from saved session-ssh -telnet -rlogin -raw            force use of a particular protocol-P port   connect to specified port-l user   connect with specified username-batch    disable all interactive prompts The following options only apply to SSH connections:  -pw passw login with specified password-D [listen-IP:]listen-port           Dynamic SOCKS-based port forwarding-L [listen-IP:]listen-port:host:port            Forward local port to remote address-R [listen-IP:]listen-port:host:port            Forward remote port to local address-X -x     enable / disable X11 forwarding
-A -a     enable / disable agent forwarding-t -T     enable / disable pty allocation
-1 -2     force use of particular protocol version
-4 -6     force use of IPv4 or IPv6-C        enable compression
-i key    private key file for authentication-m file   read remote command(s) from file-s        remote command is an SSH subsystem (SSH-2 only)-N        don't start a shell/command (SSH-2 only)

 

例如如下bat脚本的内容:

 

comd.txt

echo ./backup_tomcat.sh > comd.txt
echo exit >> comd.txt

 

putty -ssh -l %user% -pw %pwd% -P %port% %ip% -m comd.txt >> aa.log

 

 

>psftp -h
PuTTY Secure File Transfer (SFTP) client
Release 0.63
Usage: psftp [options] [user@]host
Options:-V        print version information and exit-pgpfp    print PGP key fingerprints and exit-b file   use specified batchfile-bc       output batchfile commands-be       don't stop batchfile processing if errors-v        show verbose messages-load sessname  Load settings from saved session-l user   connect with specified username-P port   connect to specified port-pw passw login with specified password-1 -2     force use of particular SSH protocol version-4 -6     force use of IPv4 or IPv6-C        enable compression-i key    private key file for authentication-noagent  disable use of Pageant-agent    enable use of Pageant-batch    disable all interactive prompts

 

 

WinSCP是一个Windows环境下使用SSH的开源图形化SFTP客户端。同时支持SCP协议。它的主要功能就是在本地与远程计算机间安全的复制文件。

 


直接在cmd下输入winscp进入winscp操作介面,查看帮助直接在下面输入help就可以看到所以可用到的命令。

连接到远程机器:
open root@192.168.2.19
输入密码就成功登录了

输入help:
winscp> help
call     执行任意远程Shell命令
cd       改变远程工作目录
chmod    改变远程文件权限
close    关闭会话
exit     关闭所有会话并结束程序
get      从远程目录下载文件到本地目录
help     显示帮助
keepuptodate 在一个远程目录连续反映本地目录的改变
lcd      改变本地工作目录
lls      列出本地目录的内容
ln       新建远程符号链接
lpwd     显示本地工作目录
ls       列出远程目录的内容
mkdir    新建远程目录
mv       移动或者重命名远程文件
open     连接到服务器
option   设置或显示脚本选项的值
put      从本地目录上传文件到远程目录
pwd      显示远程工作目录
rm       删除远程文件
rmdir    删除远程目录
session  列出连接的会话或者选择活动会话
synchronize 用一个本地目录同步远程目录

如果要查看某个命令的具体使用方法用:
help command
例,现在不记得synchroize的具体命令方法了,现在我可以使用:
help synchronize
winscp> help synchronize
synchronize local|remote|both [ <local directory> [ <remote directory> ] ]
  当第一个参数是'local'时,用远程与本地同步。
当第一个参数是'remote'时用本地目录同步远程目录。
当第一个参数是'both'用一个同步另一个。
当目录没有指定时,同步当前工作目录。
如果'synchdelete'设置为'on',旧文件会被删除。
注意:对这个命令,覆盖确认永远是关闭的。
影响的选项:
  transfer, synchdelete, exclude, include
范例:
  synchronize remote

  synchronize both E:\resource /html/resource

  synchronize remote E:\resource /html/resource

 

=============== End

 

转载于:https://www.cnblogs.com/lsgxeva/p/11361972.html


http://chatgpt.dhexx.cn/article/4woqZPM5.shtml

相关文章

psftp

2019独角兽企业重金招聘Python工程师标准>>> 当连接到远程计算机以后&#xff0c;使用以下命令&#xff1a; bye 结束 psftp 。 cd 改变远程服务器的目录。 chmod 改变远程服务器的文件或文件夹的权限及属性。 del 删除远程服务器上的文件。 dir …

linux psftp,使用PSFTP实现Windows、Linux之间的文件传输

安装PuTTY时自动安装了PSFTP 使用PSFTP可以实现Winodws、Linux之间的文件传输。 打开PSFTP&#xff0c;输入Linux的ip地址&#xff0c;输入要登录的用户名、密码 Windows向Linux传文件&#xff1a; put D:\jdk-8u241-linux-x64.rpm /root/jdk-8u241-linux-x64.rpm put 本地文件…

putty以及psftp的基本操作,使用方法等

1、putty登陆远程服务器 open之后进入登陆界面&#xff0c;输入用户名之后点击Enter&#xff0c;之后输入登陆密码&#xff08;界面不显示&#xff0c;输入正确后直接Enter就可以&#xff09; 进入之后的界面 之后就可以输入命令进行操作了 2、文件传输psftp&#xff1a; 运行…

PSFTP工具的使用教程

PSFTP&#xff1a;是Putty的SFTP客户端&#xff0c;可以通过SFTP协议在两台电脑之间的传输文件。它和 PSCP相比的优点在于可以与服务器进行交互&#xff0c;遍历服务器上的文件系统&#xff0c;在一个会话中上传或下载多个文件。而 PSCP 只能一次传输一个文件&#xff0c;传输完…

Vector3.Lerp

Unity3D中的线性插值Lerp()函数解析 在unity3D中经常用线性插值函数Lerp()来在两者之间插值&#xff0c;两者之间可以是两个材质之间、两个向量之间、两个浮点数之间、两个颜色之间&#xff0c;其函数原型如下&#xff1a; Material.Lerp 插值 function Lerp(start : Materi…

Unity 的Vector3.Project 和 Vector3.ProjectOnPlane

目录 1.public static Vector3 Project(Vector3 vector, Vector3 onNormal); 描述 &#xff1a; 代码&#xff1a; 效果&#xff1a; 结论&#xff1a; 2.public static Vector3 ProjectOnPlane(Vector3 vector, Vector3 planeNormal);返回向量在平面上的位置。 描述 …

Vector3——简单的3D向量类

参考资料&#xff1a;1、 [美] 邓恩&#xff08;Dunn F.&#xff09;著. 3D数学基础——图形设计与开发. 史银雪&#xff0c;陈洪&#xff0c;王荣静 译 清华大学出版社 p57-65 2、http://www.2cto.com/kf/201311/260139.html 编程环境 QT4.8.4 VS2010 本文用 C实现一个简单…

Unity Vector3.Dot(VectorA, VectorB)

Unity Vector3.Dot(VectorA, VectorB) Vector3.Dot(VectorA, VectorB) 等于 VectorA * VectorB。 而对于两个向量的乘积计算&#xff1a; VectorA * VectorB Ax * Bx Ay * By Az * Bz 例如&#xff1a; VectorA(1,2,3) * VectorB(4,5,6) 1*42*53*632 一般应用于判断飞行…

Unity - 优化 Vector3.ProjectOnPlane

文章目录 起因好奇绘制 Vector3.ProjectOnPlane 的参数&#xff0c;与返回结果绘制结果定位作用、优化完整脚本ProjectReferences 起因 之前偶然项目中看到过 API Vector3.ProjectOnPlane API 的使用 然在这篇文章也看到&#xff1a;Unity3d那些你不常用但确有其用的方法—Ve…

Unity —— Vector3

Vector3向量&#xff0c;在三维坐标系中带有方向和大小的数据 Vector3中一些常量&#xff1a; 1、Vector3.back&#xff08;0,0,-1&#xff09; 2、Vector3.forward&#xff08;0,0,1&#xff09; 3、Vector3.left&#xff08;-1,0,0&#xff09; 4、Vector3.right&#xff0…

Unity3D_向量(Vector3)数学基础

向量&#xff08;Vector3&#xff09; 在虚拟的游戏世界中&#xff0c;3D数学决定了游戏&#xff0c;如何计算和模拟出开发者以及玩家看到的每一帧画面。学习基础的3D数学知识可以帮主用户对游戏引擎产生更深刻的了解。 向量定义&#xff1a;既有大小又有方向的量叫做向量。在…

Vector3类详解

|| 欢迎讨论技术的可以相互加微信&#xff1a;windgs (请备注csdnxx职业) || --------------------- 作者&#xff1a;隨意的風 来源&#xff1a;CSDN 原文&#xff1a;https://blog.csdn.net/Windgs_YF/article/details/86550843 版权声明&#xff1a;本文为博主原创文章…

面试真的被问麻了......

前几天组了一个软件测试面试的群&#xff0c;没想到效果直接拉满&#xff0c;看来大家对面试这块的需求还是挺迫切的。昨天我就看到群友们发的一些面经&#xff0c;感觉非常有参考价值&#xff0c;于是我就问他还有没有。 结果他给我整理了一份非常硬核的面筋&#xff0c;打开…

实事求是,虚事求应

休谟之问&#xff0c;能否从“是”中得“应”&#xff1f;孟子回答说&#xff1a;二者不可得兼&#xff0c;舍身&#xff08;是&#xff09;取义&#xff08;应&#xff09;者也。 ​ 智能涉及人、机、环境三部分&#xff0c;其中人通过算计形成的意图、直觉、抽象等&#xff0…

管理就要“实打实”

https://www.toutiao.com/a6642491590042452483/ 2019-01-07 10:13:32 导语 如何才能使得企业的经营管理高效呢&#xff1f;这个问题没有什么捷径可走&#xff0c;唯有实打实的来落实各项工作。归纳起来就是三个方面的内容&#xff1a;说实话、办实事、讲实效。 一、 说实话…

8分钟的面试,我直呼太变态了......

干了两年外包&#xff0c;本来想出来正儿八经找个互联网公司上班&#xff0c;没想到算法死在另一家厂子。 自从加入这家外包公司&#xff0c;每天都在加班&#xff0c;钱倒是给的不少&#xff0c;所以也就忍了。没想到11月一纸通知&#xff0c;所有人不许加班&#xff0c;薪资…

【不就是java设计模式吗】设计模式七大原则,用代码对比方式,化抽象为具体,实打实的教会你

&#x1f497;作者简介&#xff1a;大家好&#xff0c;我是卷心菜~~&#xff0c;第二季新星计划java领域第十名。&#x1f4dd;个人主页&#xff1a;卷心菜的CSDN博客&#x1f4d5;系列专栏&#xff1a;本文写在Java设计模式专栏&#xff1a;不就是java设计模式吗&#x1f4e7;…