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