-
Notifications
You must be signed in to change notification settings - Fork 63
PLink
Henrik edited this page Aug 21, 2014
·
1 revision
Connect to a remote PuTTY SSH Server and execute commands.
plink :unpack do |cmd|
cmd.command = "path/to/plink"
cmd.host = "mywebserver"
cmd.port = "1234"
cmd.user = "username"
cmd.key = "path/to/keyfile"
cmd.commands = [
"cd /webapp/",
"unzip website.zip"
]
endThe path to the plink application.
command = "path/to/plink"The remote host to connect to.
host = "mywebserver"The commands to execute on the remote host.
commands = [
"cd /webapp/",
"unzip website.zip"
]The port on the remote host to connect to (defaults to 22, the SSH port)
port = 1234The user to connect as on the remote host.
user = "username"The path to the key for connecting securely to the remote host.
key = "path/to/keyfile"Run plink with verbose output.
verbose(none)