net.scp
Class ScpTo
java.lang.Object
net.scp.ScpTo
public class ScpTo
- extends java.lang.Object
net.scp.ScpTo A main entry into an scp client.
See ScpDialog for a proper GUI.
Constructor Summary |
ScpTo()
|
Method Summary |
static void |
main(java.lang.String[] arg)
|
static void |
scpTo()
|
static void |
scpTo(java.lang.String localFile,
java.lang.String remoteSystem,
java.lang.String remoteFile,
SimpleUserInfo sui)
A simple entry point for uploading a localFile
file to a remote system via scp. |
static void |
sftpTo(java.lang.String localFile,
java.lang.String remoteSystem,
java.lang.String remoteFile,
SimpleUserInfo sui)
A simple entry point for uploading a single
file to a remote system using SFTP. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScpTo
public ScpTo()
main
public static void main(java.lang.String[] arg)
scpTo
public static void scpTo()
sftpTo
public static void sftpTo(java.lang.String localFile,
java.lang.String remoteSystem,
java.lang.String remoteFile,
SimpleUserInfo sui)
- A simple entry point for uploading a single
file to a remote system using SFTP.
- Parameters:
localFile
- check this to make sure it canReadremoteSystem
- a system with port 22 openremoteFile
- a file that will be overwritten!sui
- a simple class that hold the uid and password
scpTo
public static void scpTo(java.lang.String localFile,
java.lang.String remoteSystem,
java.lang.String remoteFile,
SimpleUserInfo sui)
- A simple entry point for uploading a localFile
file to a remote system via scp.
- Parameters:
localFile
- remoteSystem
- remoteFile
- sui
-