Created
May 2, 2019 09:30
-
-
Save bugcy013/11d59d6e4d1c79cfb7ad565c9cfa9036 to your computer and use it in GitHub Desktop.
linux to windows keyless access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Below are the steps to set up an SSH server on your windows host machine and configuring it to your Windows logon user account, using OpenSSH. (Keybased Authentication) | |
| 1. Download and install latest version of OpenSSH software from this link: http://www.mls-software.com/opensshd.html | |
| 2. During the installation process select "Local system" and "no privilege separation." | |
| 3. Uncomment the following lines in the sshd_config file. | |
| C:\Program Files\OpenSSH\etc\sshd_config | |
| - StrictModes no | |
| - PubkeyAuthentication yes | |
| - AuthorizedKeysFile .ssh/authorized_keys | |
| We need to add this line after AcceptEnv LANG line starts | |
| AcceptEnv RD_* # pass Rundeck variables | |
| 4. Add the public key of the host which your wish to access the SSH server from to the authorized_keys file. (copy the Linux user public key to windows user account or wise versa) | |
| C:\Users\[USER]\.ssh\authorized_keys | |
| 5. Finally restart the OpenSSHD service. | |
| 6. Now you can execute a command in windows without the pass | |
| like ($ssh [email protected] hostname) returns windows hostname | |
| 7. Also we need to craete temp folder for script executions for rundeck server. | |
| C:\Users\[USER]\temp | |
| Note: Please change ownership to [USER] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment