![]() ![]() ![]() Use the -t and -T switches to force the interactive and the non-interactive mode, respectively. Note that providing a command using the -m switch or directly on command-line implies a non-interactive mode, while using the standard input uses an interactive mode by default. ![]() (of course, you will use redirection mechanism of your language, instead of the <). In this guide, you will learn how to use PuTTY SSH terminal to connect to your hosting account or to a virtual private server. Or using its standard input plink.exe < c:\local\path\command.txt SSH, or Secure Shell, is a secure protocol for connecting to a remote server.To establish an SSH connection, you will need an SSH client app like PuTTY. And in addition to those, you can specify your command directly on its command like: plink.exe /home/user/myscript.sh The Plink ( plink.exe) has the same command-line arguments as PuTTY. The Plink is a part of PuTTY package, so everyone who has PuTTY should have Plink too. Though for automation, your better use the Plink command-line connection tool, instead of the GUI PuTTY application, as you have already found out. Where the commands.txt will, in your case, contain a path to your shell script, like: /home/user/myscript.sh PuTTY on Windows has a similar program, but. scp is a special case: a program use for copying a few files via an ssh connection. PuTTY has been ported to Unix (and Unix-like) systems as pterm. PuTTY has the -m switch, that you can use to provide a path to a file with a list of commands to execute: putty.exe -m c:\local\path\commands.txt PuTTY is a terminal emulator (able to run shells, which in turn run commands), while the usual SSH application is a shell (not a terminal emulator). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |