Shell SSH Remote execution command

Source: Internet
Author: User

Tag: Request an ipad address not with two use data std nal

[Email protected] shell]# vi backup.sh #!/bin/sh  ipaddress=172.17.167.38  ssh-tt  [email protected]$ Ipaddress-p  << remotessh  source/shell/backup.sh  exitremotessh  find/backups/-ctime +7- exec RM-FV {} \;  ls/backups/

Note: If SSH does not add the TT parameter (indicating that no TTY is allocated for this connection, it must use two TT to not report an error), it may be reported that Pseudo-terminal will isn't being allocated because stdin is not a terminal error

All shh parameters are as follows:

-1: Enforce SSH protocol version 1;-2: Enforce SSH protocol version 2;-4: Force the use of IPV4 address;-6: Force the use of IPV6 address;-A: Turn on the authentication agent connection forwarding function;-A: Turn off the authentication agent connection forwarding function; B: Use the local designated address as the source IP address of the corresponding connection;-C: Request to compress all data;-F: Specify the configuration file for SSH instruction;-f: SSH command in the background;-G: Allow the remote host to connect to the host's forwarding port;-I: Specify identity file;-L: Specify the remote server login user name ;-N: Do not execute remote instruction;-o: Specify configuration options;-P: Specify the port on the remote server;-Q: Silent mode;-X: Turn on the X11 forwarding function;-X11 forwarding function;-y: Turn on trust X11 forwarding. -N: Indicates that only remote hosts are connected and remote SHELL;-T is not turned on: Indicates that no TTY is assigned to this connection

  

Shell SSH Remote execution command

Related Article

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.