Page:
Dos2Unix Text file format converters
Pages
About Win32 OpenSSH and Design Details
Area Owners
Build OpenSSL
Building OpenSSH for Windows (using LibreSSL crypto)
Building Win32 OpenSSH on Linux
Certificate Authentication
DefaultShell
Deploy Win32 OpenSSH
Difference between openssh 5.9p1 and nomachine implementation
Dos2Unix Text file format converters
Eclipse CDT and GDB setup to debug SSH tools
FIDO U2F usage
Home
How to retrieve links to latest packages
Install Win32 OpenSSH Using MSI
Install Win32 OpenSSH
Intro Links for Penetration Testing
Logging Facilities
Migrate sshd_config from older versions
OpenSSH 32 bit Build and Installation Instructions
OpenSSH 64 bit Build and Installation Instructions
OpenSSH build sequence
OpenSSH utility scripts to fix file permissions
Project Scope
Project Status
Run OpenSSH Pester Tests
Run commands for various shells
Running Tests
SSH remote sessions on Windows
Security protection of various files in Win32 OpenSSH
Setting up a Git server on Windows using Git for Windows and Win32_OpenSSH
Setup public key based authentication for windows
TTY PTY support in Windows OpenSSH
Troubleshooting Steps
Various Considerations
Win32 OpenSSH RoadMap
[Deprecated] Building using VS 2015
[Deprecated] Win32 OpenSSH Automated Install and Upgrade using Chocolatey
sftp.exe examples
ssh agent
ssh.exe examples
ssh
ssh_config
sshd
sshd_config
6
Dos2Unix Text file format converters
James edited this page 2015-10-20 08:29:30 +10:30
The EOL (End Of Line) character in DOS is '\r\n'
The EOL (End Of Line) character in UNIX is '\n'
Editing UNIX files on Windows changes the EOL from UNIX to DOS, which might make the UNIX build tools not working. Also this make file comparison difficult. Use the following steps to batch convert files from DOS to UNIX EOL:
Using PowerShell
Get-ChildItem -File -Recurse | % { $x = get-content -raw -path $_.fullname; $x -replace "`r`n","`n" | set-content -path $_.fullname }
or
- Download dos2unix.exe program from http://sourceforge.net/projects/dos2unix/?source=typ_redirect
- Uncompress the compressed file (lets say, dos2unix-7.3-win32.zip)
- Put the bin directory of the uncompressed file (that has dos2unix.exe and other programs) in system path
- Open a command shell and go to the directory where you want to convert files and run
// to convert all files
for /R %G in (*.*) do dos2unix "%G"
// to convert all .h files
for /R %G in (*.h) do dos2unix "%G"
// to convert all .c files
for /R %G in (*.c) do dos2unix "%G"
Manuals
Installation
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages
Usage
- SSH Usage Examples
- SFTP Usage Examples
- Using Certificate Authentication
- Fix SSH file permissions
- Info on SSH remote sessions on Windows
- TTY PTY support
- Troubleshooting