![]() Set the Windows environment variable PLINK_PROTOCOL to the word ssh. ![]() Set up a PuTTY saved session that describes the server you are connecting to, and that also specifies the protocol as SSH.Use the -ssh option as described in section 7.2.1.To do this you have to ensure Plink is using the SSH protocol. More typically Plink is used with the SSH protocol, to enable you to talk directly to a program running on the server. If you use -load, the saved session exists, and it specifies a hostname, you cannot also specify a host or argument - it will be treated as part of the remote command.) 7.2.2 Using Plink for automated connections ![]() This allows you to use public-key authentication, specify a user name, and use most of the other features of PuTTY: C:\>plink my-ssh-sessionĪuthenticating with public key login: Thu Dec 6 19:25:33 2001 from can also use the -load command-line option to load a saved session see section 3.11.3.1. If you have already set up a PuTTY saved session, then instead of supplying a host name, you can give the saved session name. To make an SSH connection, for example: C:\>plink -ssh In order to connect with a different protocol, you can give the command line options -ssh, -ssh-connection, -telnet, -rlogin, or -raw. Interactive connections like this are not the main point of Plink. So if you run any full-screen applications, for example, you can expect to see strange characters appearing in your window. The output sent by the server will be written straight to your command prompt window, which will most likely not interpret terminal control codes in the way the server expects it to. You should then be able to log in as normal and run a session. To make a simple interactive connection to a remote server, just type plink and then the host name: C:\>plink Once this works, you are ready to use Plink. Test whether a connection-sharing upstream exists Open tunnel in place of session (SSH-2 only)Ĭontrol what happens when a log file already exists N don't start a shell/command (SSH-2 only) s remote command is an SSH subsystem (SSH-2 only) no-antispoof omit anti-spoofing prompt after authentication sanitise-stderr, -sanitise-stdout, -no-sanitise-stderr, -no-sanitise-stdoutĭo/don't strip control chars from standard output/error Manually specify a host key (may be repeated) noshare disable use of connection sharing ![]() i key private key file for user authenticationĭisconnect if SSH authentication succeeds trivially 1 -2 force use of particular SSH protocol version pwfile file login with password read from specified file The following options only apply to SSH connections: Specify the serial configuration (serial only) load sessname Load settings from saved sessionįorce use of the bare ssh-connection protocol pgpfp print PGP key fingerprints and exit ("host" can also be a PuTTY saved session name) This tells you the version of Plink you're using, and gives you a brief summary of how to use Plink: C:\>plink Once you've got a console window to type into, you can just type plink on its own to bring up a usage message. This section describes the basics of how to use Plink for interactive logins and for automated processes. On Windows 95, 98, and ME, you will need to edit your AUTOEXEC.BAT to include a set command like the one above. To set your PATH more permanently on Windows NT, 2000, and XP, use the Environment tab of the System Control Panel. This will only work for the lifetime of that particular console window. To add the directory containing Plink to your PATH environment variable, type into the console window: set PATH=C:\path\to\putty\directory %PATH% In order to use Plink, the file plink.exe will need either to be on your PATH or in your current directory. It should be available from the Programs section of your Start Menu. In Windows 95, 98, and ME, this is called an «MS-DOS Prompt», and in Windows NT, 2000, and XP, it is called a «Command Prompt». This means that you cannot just double-click on its icon to run it and instead you have to bring up a console window. Plink is probably not what you want if you want to run an interactive session in a console window. It is mostly used for automated operations, such as making CVS access a repository on a remote server. Plink is a command-line connection tool similar to UNIX ssh. 7.3 Using Plink in batch files and scripts.7.2.2 Using Plink for automated connections.7.2.1 Using Plink for interactive logins.Глава 7: Using the command-line connection tool Plink
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |