Windows Server 2008 - Where do I place my SSH Key ?

4 posts / 0 new
Last post
danlee
Offline
Last seen: 8 years 8 months ago
Joined: 26.04.2012 - 03:10
Windows Server 2008 - Where do I place my SSH Key ?

Title says it all!

itefix
Offline
Last seen: 31 min 20 sec ago
Joined: 01.05.2008 - 21:33
How does your setup look like

How does your setup look like ? And what do you want to achieve ? If it's about the private key, it can be made available from any media you recognize as secure. If it's about the public key, it should be concatenated to the file authorized_keys in .ssh directory in user's home directory.

danlee
Offline
Last seen: 8 years 8 months ago
Joined: 26.04.2012 - 03:10
I was able to produce a

I was able to produce a solution with a batch file.

danlee
Offline
Last seen: 8 years 8 months ago
Joined: 26.04.2012 - 03:10
@ECHO OFF REM Make

@ECHO OFF

REM Make environment variable changes local to this batch file

SETLOCAL

 

REM where to find rsync and related files

SET CWRSYNCHOME=C:\Program Files (x86)\cwRsync

 

REM Set HOME variable to your appdata directory. That makes sure that

REM ssh command creates known_hosts in a directory you have access.

SET HOME=C:\Users\Administrator.SERVER\AppData\Roaming

 

REM Make cwRsync home as a part of system PATH to find required DLLs

SET CWOLDPATH=%PATH%

SET PATH=%CWRSYNCHOME%\BIN;%PATH%

 

"C:\Program Files (x86)\cwRsync\bin\rsync.exe" -a  -e "'C:\Program Files (x86)\cwRsync\bin\ssh.exe' -v -i /cygdrive/C/temp" "XXXX@XXXXXXX:/backup" "/cygdrive/E/"