Putty and psftp command line arguments

Source: Internet
Author: User

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 following options only apply to SSH connections:-PW PASSW Login with Speci fied 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 a SSH subsystem (SSH-2 only)
-N don ' t start a shell/command (SSH-2 only)

For example, the contents of the following bat script:

echo/backup_tomcat.sh > Comd.txt
Echo Exit >> Comd.txt

Putty-ssh-l%user%-pw%pwd%-P%port%%ip%-M comd.txt >> Aa.log

D:\Program Files (x86) \putty>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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.