Created Running ssh and sshd (markdown)

arif-pragmasys 2015-09-10 15:47:53 -05:00
parent 2edd82f71f
commit 164600d8fb

55
Running-ssh-and-sshd.md Normal file

@ -0,0 +1,55 @@
#### Running SSH server:
1. Download Service Manager tool NSSM
[https://nssm.cc/download](https://nssm.cc/download)
2. Unzip the download and run the follwoing command as Administrator form the uncompressed directory,
nssm.exe install
3. In the NSSM UI set the following values to install the service
set service name 'openssh'
set Path to the location of sshd.exe
set Startup directory to the directory where sshd.exe exists
set arguments -r
Install service
3. run the follwoing command as Administrator,
net start openssh
#### Running ssh.exe:
##### Login With Password:
Launch a cmd shell and go to the directory where ssh.exe exists.
for local users:
./ssh.exe user@host
for domain user:
./ssh.exe -l user@domain host
##### Login with Certificate:
Launch a cmd shell and go to the directory where ssh.exe exists. Run
./ssh-keygen -t rsa
to generate rsa certificate, lets say with the file names are id_rsa and id_rsa.pub, located in the same directory as ssh.exe
append the contents of id_rsa.pub file to authorized_keys file located in the .ssh directory under remote user's home direcotry in the reomote host. Then run:
./ssh.exe -i ./id_rsa user@host
for domain users:
./ssh.exe -i ./id_rsa -l user@domain host