freeware ssh server or scp server for Windows XP that offer Binary & Ascii files transfer

sunhux
sunhux used Ask the Experts™
on

There's Winscp & putty but these are scp client & ssh client.

I've also seen putty's pscp but it's a client running on Windows &
do not offer the choice of Binary & Ascii files transfer.

Q1:
I'm looking for a ssh / scp server that runs on Windows &
if possible, it has a feature to choose between Ascii &
Binary modes

Q2:
Ideally if this ssh / scp / sftp server  can auto-detect the
file is text or binary & automatically set to right mode;  if
it does not have this feature, perhaps someone can offer
an automated workaround : don't want a Dos2Unix or
Unix2dos utility.  I'm transferring files from Linux & HP-UX
boxes to a central Windows PC, so perhaps a Shell script
that checks if a file is Ascii text or binary & then set it to the
right mode for transfer would be good and if it's a "get" (ie
from Windows to Unix), then the script would check the
transferred file & if needed, do the dos2unix conversion
at Unix end.


Have encountered a number of disruptions where the mode
of transfer was not set correctly (or default mode is used)
resulting in incorrect mode being used : script can't be run,
/etc/hosts file at Unix end can't be read (thus IP addresses
on interface not set when Unix box is rebooted), etc etc
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
There are several free ssh servers for Windows, for example:

http://mobassh.mobatek.net/en/
http://www.freesshd.com/

Unfortunately, ssh/scp protocol always treat files as binary.
Ascii/binary mode is a feature of an old ftp protocol.
Most Valuable Expert 2013
Top Expert 2013
Commented:
Hi,
this is a case for freeSSHd - http://www.freesshd.com/
WINscp offers a selection between the line-end characters LF od CRLF.
freeSSHd should be able to indicate to the client the mode to be used  - test it!
wmp
 
 
Top Expert 2015
Commented:
ASCII and EBCDIC modes are plague of file transfering.
You can use dd conv= command to convert files to system-readable format after binary transfer.
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Author

Commented:

I've checked out & installed freesshd but there seems to be nowhere in it to
allow me to specify binary / Ascii mode as I got from the website a screen
shot (see attached)

http://www.freesshd.com

Also, after launching it on my PC, it's running in the background, I can't seem
to call up the screen in the attached to do configuration.  What did I miss?
Sshsvrsftpscrdmp.jpg
Top Expert 2010

Commented:
The SSH / SCP protocols do not provide a character set transaltion function (Asci mode). All transfers are encrypted and binary.
Top Expert 2007
Commented:
While WinSCP may not be useful for your needs (unless you can do a pull), then the following info might be useful

http://winscp.net/eng/docs/transfer_mode

Author

Commented:

Freesshd is the closest I can get.  I'll post another question for a scp scrpt that will autoconvert
a text/Ascii file before doing scp

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial