Topic "How to pass proxyhost in command line (script.txt)"

Author Message
Janardhanan
[View user's profile]

Joined: 2011-05-30
Posts: 4
Location: India
Hi,

i want to pass proxy value in command line

currently the command to open sftp like,

open sftp://user:password@hostname:port
but, i want to add proxy name also in command line...
is it possible to add proxyname also?
"ProxyHost=proxyhost.test.com"

suppose i open winscp.exe directly means i can add proxy host also
but in the script.txt i am not able to add proxyhost name...

pls help me...

Thanks
Jana
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read FAQ:
https://winscp.net/eng/docs/faq_script_ini
_________________
Martin Prikryl
Janardhanan
[View user's profile]

Joined: 2011-05-30
Posts: 4
Location: India
Hi,
i want to pass hostname,username,password and also proxyhost using open script command... i dont want to use stored session.

i am able to pass username, password, hostname and port using script to connect ftp server. now i want to connect sftp command. my sftp has proxy settings also can you give me a suggestion to passing proxy as argument. i have attached my ftp script code

option batch on
option confirm off
open ftp://username:password@hostname:port
cd "out
option transfer binary
get Test.zip MyTest.zip
close
exit

but, i want to connect sftp with proxy host

suppose i will use to refere ini files for setting proxy host value where i can mention the password. because in ini file password is encrypted. so i am not able to mention the password in configuration settings. or suppose i didnt mention the password means winscp prompt me to enter the password. so how can i pass the password with command line directly..

kindly help me to solve my issue..

Thanks
jana
Janardhanan
[View user's profile]

Joined: 2011-05-30
Posts: 4
Location: India
Janardhanan wrote:
Hi,
i want to pass hostname,username,password and also proxyhost using open script command... i dont want to use stored session.

i am able to pass username, password, hostname and port using script to connect ftp server. now i want to connect sftp command. my sftp has proxy settings also can you give me a suggestion to passing proxy as argument. i have attached my ftp script code

option batch on
option confirm off
open ftp://username:password@hostname:port
cd "out
option transfer binary
get Test.zip MyTest.zip
close
exit

but, i want to connect sftp with proxy host

suppose i will use to refere ini files for setting proxy host value where i can mention the password. because in ini file password is encrypted. so i am not able to mention the password in configuration settings. or suppose i didnt mention the password means winscp prompt me to enter the password. so how can i pass the password with command line directly..

kindly help me to solve my issue..

Thanks
jana


pls solve my issue... i am working with .net using C#
Janardhanan
[View user's profile]

Joined: 2011-05-30
Posts: 4
Location: India
Hi,
i want to pass hostname,username,password and also proxyhost using open script command... i dont want to use stored session.

i am able to pass username, password, hostname and port using script to connect ftp server. now i want to connect sftp command. my sftp has proxy settings also can you give me a suggestion to passing proxy as argument. i have attached my ftp script code

option batch on
option confirm off
open ftp://username:password@hostname:port
cd "out
option transfer binary
get Test.zip MyTest.zip
close
exit

but, i want to connect sftp with proxy host

suppose i will use to refere ini files for setting proxy host value where i can mention the password. because in ini file password is encrypted. so i am not able to mention the password in configuration settings. or suppose i didnt mention the password means winscp prompt me to enter the password. so how can i pass the password with command line directly..

kindly help me to solve my issue..

Thanks
jana
GeorgeM

Guest


Hi,

It is really easy Cool

Example:
Proxy address: myproxy.net (or ip address of proxy: 195.195.195.32)
FTP address: myftp.syte.org (or ip address of ftp: 10.10.10.33)
User name for ftp: NA\S029088
Pass: easyftpproxy

connection:
start command prompt: run - > cmd
open ftp - type 'ftp' and press Enter: ftp (enter)

c:\ftp
ftp> open myproxy.net
ftp> NA\S029088@myftp.syte.org
ftp>easyftpproxy
230 User NA\S029088 logged in.
ftp>bye
c:\

Mr. Green
david9988

Guest


HI,
AND USING PORT 8080 WOW DO YOU INCLUDE THAT ?
THANKS

GeorgeM wrote:
Hi,

It is really easy Cool

Example:
Proxy address: myproxy.net (or ip address of proxy: 195.195.195.32)
FTP address: myftp.syte.org (or ip address of ftp: 10.10.10.33)
User name for ftp: NA\S029088
Pass: easyftpproxy

connection:
start command prompt: run - > cmd
open ftp - type 'ftp' and press Enter: ftp (enter)

c:\ftp
ftp> open myproxy.net
ftp> NA\S029088@myftp.syte.org
ftp>easyftpproxy
230 User NA\S029088 logged in.
ftp>bye
c:\

Mr. Green
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License