How to Launch Perl From SSH
Secure Shell (SSH) is a program that allows to computers to communicate over a secure network channel. The secure network channel encrypts data in a manner in which anyone who intercepts the signal will have useless data. SSH is primarily used to connect to Linux or Unix computers and run commands. You can use SSH to execute a number of commands on a remote system as if you were there in person. For example, you can use SSH to launch a Perl script remotely.
Things You'll Need
- Computer with SSH Client
- Computer with SSH Server (often referred to as a Shell Account)
Instructions
-
-
1
Open the SSH Client program. This is the program that allows you to connect to a remote computer that runs an SSH Server, which is typically a Linux or Unix system. These Operating Systems and Mac OSX have SSH Clients built into them. If you are running Windows, you will need to download a third-party application. There are several options available to you, and they all function pretty much the same. Three examples of SSH Clients for Windows are Putty, TTSSH and Cygwin (see Resources).
-
2
Enter the SSH Server address in the field entitled "Server" or "Remote System." The exact wording depends on the SSH Client you are using.
-
-
3
Enter your username and password in the appropriate fields.
-
4
Press the "Connect" button to open a secure network channel with the remote computer. A terminal window will appear. This window allows you to type in commands that are then run on the remote computer.
-
5
Type in the following command to launch a Perl script, substituting the name of your Perl script with the following "scriptname.pl":
scriptName.pl
-
1
Tips & Warnings
You can only launch Perl scripts that reside on the remote computer using SSH. If you have a Perl script on your local machine, you must first transfer it to the remote computer before you can launch it via SSH.