dda Posted March 9, 2005 Posted March 9, 2005 Hi,I spent a few days trying to install sshwindows (from sshwindows.sourceforge.net). Well had some problems but now I get it, so I thought I sould share it.This will give local ssh access to "administrator" from any ip address (SO, BE CAREFULL!!!).1) Download it from:sshwindows.sourceforge.net2) Install it, ignore the passwd and group warning at the end.3) Copy the installed file from c:\program files\openssh to your cd at:$OEM$\$PROGS\OpenSSH4) Delete all these files that start with ssh_host_ here: $OEM$\$PROGS\OpenSSH\etc\You should have delete these 6 files:ssh_host_keyssh_host_key.pubssh_host_rsassh_host_rsa.pubssh_host_dsassh_host_dsa.pub5) You need to allow ssh through the winxpsp2 firewall, so add these lines to your winnt.sif:[WindowsFirewall]Profiles = WindowsFirewall.Standard LogFile = "%SYSTEMDRIVE%\logs\pfirewall.log"LogSize = 4096LogDroppedPackets = 1LogConnections = 1[WindowsFirewall.Standard]Type = 3Mode = 1Exceptions = 1Notifications = 1MulticastBroadcastResponse = 0PortOpenings = WindowsFirewall.SSHD[WindowsFirewall.SSHD]Protocol = 6Port = 22Name = OpenSSHDMode = 1Scope = 1(I hope I didn't make a mistake now, as I made a modified cut and paste from my original settings).You may skeep this firewall entries and add this to a batch file if you want:netsh firewall add portopening tcp 22 openssh6) My cmdlines.txt launches a batch file to execute the runonce stuff. Here are the ssh runonceex.cmd lines:REG ADD %KEY%\02 /VE /D "Activating OpenSSH (SECURITY)" /fREG ADD %KEY%\02 /V 1 /D "cmd /c start /I /wait %SYSTEMDRIVE%\progra~1\openssh\activate.cmd"(it wrapped the second line, it needs to be in one line!!!)7) Save the file activate.cmd in (see attachment OpenSSH.rar):%OEM%\$PROGS\OpenSSH8) An finally save the file settings.reg (see attachment OpenSSH.rar), in %OEM%\$PROGS\OpenSSHNow reboot (IT IS NECESSARY TO REBOOT!!)Voilà, ssh to your machine P.S. Do not use cmdow in your batch file or ssh-keygen will fail, as it needs an output window!!!!If you combine ssh tunneling with realvnc and/or rdp you have very secure remote access! Hope this helps, if not, post your comments or questionsundefined
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now