- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP without Password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 07:20 PM
тАО10-16-2006 07:20 PM
I am uploading files to my server from my windows machine using ftp.
It want to create a batch file and when i run it from my windows machine it automatically copy the files to the FTP server without asking the password.
My query is,
How can i send the password to my ftp server while i am running a batch file..
I dont want to do it manaully , I want to enter the password in my script, such that the ftp upload operation start automatically.
Anybody guide me how to do it...
Regards
Suseendran .A
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 07:27 PM
тАО10-16-2006 07:27 PM
Solutionon the windows machine create a .bat file with:
echo user USERID PASSWORD > a.lis
echo ls >> a.lis
echo bye >> a.lis
ftp -n -d -s:a.lis IPADDRESS
del a.lis
NOT recommened way, as it gives you a security problem:
On the UNIX machine
edit $HOME/.netrc
machine
chmod 700 $HOME/.netrc
You should then be able to ftp directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 12:50 AM
тАО10-17-2006 12:50 AM
Re: FTP without Password
also consider using secure FTP also known as sftp.
It may also use many features of ssh, such as public key authentication and compression.
it is more secured.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 01:19 AM
тАО10-17-2006 01:19 AM
Re: FTP without Password
I accept your words that sftp is more secure and fast when compare to ftp.
But when i give sftp command from my system it is giving the error message "command not found"
Can u tell me , whether sftp will work in windows , if so how can i came out of the issue.
Regards
Suseendran .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 01:30 AM
тАО10-17-2006 01:30 AM
Re: FTP without Password
"sftp for windows"
http://winscp.net/eng/index.php
or
"ssh for windows"
http://www.networksimplicity.com
"ssh for UNIX"
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-4.3p2/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 01:23 AM
тАО10-18-2006 01:23 AM
Re: FTP without Password
1st I have a perl/sed script that modifies the TEMPLATE Below:
Specifically FILE the USERNAME and PASSWORD are embedded in the expect script. (if you have security concerns I'd opt for batch mode SFTP where you've exchanged keys.
#!/usr/bin/expect
spawn ftp 10.3.253.6
expect "Name"
send "USERNAME\r"
expect "Password:"
send "PASSWORD\r"
expect "ftp> "
send "lcd /home/xfer\r"
expect "ftp> "
send "cd /tmp/xfer\r"
expect "ftp> "
send "ascii\r"
expect "ftp> "
send "put FILE\r"
expect "ftp> "
send "quit\r"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2006 09:03 PM
тАО10-19-2006 09:03 PM
Re: FTP without Password
could you please update this thread.
If the problem is resolved, please award points and close stating solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2006 08:55 PM
тАО10-24-2006 08:55 PM
Re: FTP without Password
Thanks to all
Now It is working fine.