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

Advertisement

Janardhanan
Joined:
Posts:
4
Location:
India

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

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

Reply with quote

Advertisement

Janardhanan
Joined:
Posts:
4
Location:
India

Re: How to pass proxyhost in command line (script.txt)

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

Reply with quote

Janardhanan
Joined:
Posts:
4
Location:
India

Re: How to pass proxyhost in command line (script.txt)

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#

Reply with quote

Janardhanan
Joined:
Posts:
4
Location:
India

Pass Proxy Host in command line

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

Reply with quote

GeorgeM
Guest

Re: How to pass proxyhost in command line

Hi,

It is really easy 8)

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:\

:mrgreen:

Reply with quote

david9988
Guest

Re: How to pass proxyhost in command line

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

GeorgeM wrote:

Hi,

It is really easy 8)

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:\

:mrgreen:

Reply with quote

Advertisement

You can post new topics in this forum