C
C
CartmanGui2015-03-24 12:46:15
SSH
CartmanGui, 2015-03-24 12:46:15

How to connect via cmd via ssh without entering a password?

In general, you need to connect to the server via ssh via cmd without entering a password, it turns out via PuTTY, but if it asks for a password via cmd, the private key is in C:\Users\username\.ssh\

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Yamschikov, 2015-03-24
@mobilesfinks

If you use OpenSSH, then it has the "-i" parameter - specify the key file
in your case, it will be something like this,
you need to specify the full path to the private key, where id_rsa is the name of the key file

S
ShamblerR, 2015-03-24
@ShamblerR

putty.exe -l root -pw pass host

G
glsv, 2016-12-18
@glsv

Faced a problem that the ssh client on win does not see keys from c:/users/USERNAME/.ssh and looks for them in /home/username/.ssh
Decided by defining an environment variable
set HOME = %USERPROFILE%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question