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


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
sunhuxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

medveddCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
woolmilkporcCommented:
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
 
 
0
gheistCommented:
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.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

sunhuxAuthor 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
0
arober11Commented:
The SSH / SCP protocols do not provide a character set transaltion function (Asci mode). All transfers are encrypted and binary.
0
TintinCommented:
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
0
sunhuxAuthor 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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.