sftp/Simple.js

///////////////////////////////////////////////////////////////////////////////////
//
// Simple
//
// Purpose: 
//   Connects to remote server.
//
// Technical support: support@smartftp.com
//
// Copyright (c) by SmartSoft Ltd.
//
///////////////////////////////////////////////////////////////////////////////////
var obj = new ActiveXObject("sfFTPLib.SSHConnection");

// Settings
obj.Host = "localhost";
obj.Port = 22;
obj.Username = "yourusername";
obj.Password = "yourpassword";
obj.LogFile.File = ".\\SimpleLog.log";

// Connect
obj.Connect();
WScript.Echo("SSH Connected");	
var objSFTP = obj.CreateSFTPConnection();
objSFTP.Connect();	
obj.Disconnect();