LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-18-2013, 04:39 AM   #1
sras
Member
 
Registered: Jul 2013
Posts: 31

Rep: Reputation: Disabled
SFTP from windows to Linux server


Hello Guys,

I'm trying to send a file from Windows machine to a Linux machine.
While running the SFTP command from windows, getting the prompt for the password. Is there any way to automate/hardcode the password?

C:\ftp>sftp -B C:\ftp\test.bat user@host

input_userauth_banner

You are authorized to use this System for approved business purposes only.
Use for any other purpose is prohibited. All transactional records, reports,
email, software and other data generated by or residing upon this System,
to the extent permitted by local law, are the property of Citigroup Inc.
or one of its subsidiaries or their affiliates
(individually or collectively ' Citigroup ') and may be used by Citigroup
for any purpose authorized and permissible in your country of work.
Activities on this System are monitored to the extent permitted by local law.




PAM Authentication
Password: ^C


The content in C:\ftp\test.bat file:

cd /tmp
ascii
put CASS_TLM_OpenTrades_201310031_test.txt
quit
 
Old 11-18-2013, 04:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You shoudl use a preshared key. http://the.earth.li/~sgtatham/putty/.../Chapter8.html
 
Old 11-18-2013, 05:05 AM   #3
sras
Member
 
Registered: Jul 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Could you advise me how to create the Key in windows machine.

Getting the error while running PuTTYgen from command line:

'PuTTYgen' is not recognized as an internal or external command,
operable program or batch file.
 
Old 11-18-2013, 07:08 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I'm sure you're able to go find puttygen yourself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sftp connection between Windows server and linux server vikash.thbs Linux - Server 2 01-02-2012 10:25 AM
[SOLVED] ssh/sftp from U/Linux to Windows unix1adm Linux - Software 1 04-05-2010 03:09 PM
SFTP fails from RHEL 4.6 AS to Windows 2003 Server running WS_FTP valen_tino Red Hat 7 04-06-2009 01:24 PM
cannot login into SFTP server using Net::SFTP cccc Programming 1 10-31-2007 06:23 AM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration