Community discussions

MikroTik App
 
oliverbedi
just joined
Topic Author
Posts: 18
Joined: Thu Aug 10, 2017 11:49 am

ssh key pub from windows 10 OpenSSH

Wed Nov 18, 2020 8:05 pm

Hi,

i want to make loging without password to microtik over SSH. I create cert cross ssh-keygen.exe when inport .pub key to mikrotik and when i want to connect cross ssh.exe Username@localip -p 22 show me password prompt.

Muss i use only putty for sshkey auth?
 
Sob
Forum Guru
Forum Guru
Posts: 6260
Joined: Mon Apr 20, 2009 9:11 pm

Re: ssh key pub from windows 10 OpenSSH

Thu Nov 19, 2020 12:31 am

Why do you think this belongs in "Useful user articles"?

Anyway, try to add -v parameter and it should show you where it looks for keys.
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply. Not intended as incentive for masochists.
 
oliverbedi
just joined
Topic Author
Posts: 18
Joined: Thu Aug 10, 2017 11:49 am

Re: ssh key pub from windows 10 OpenSSH

Thu Nov 19, 2020 12:44 am

Ou, i apologized. I to surf on forum and I didn't realize so on article users.

at any rate here is my output:
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Connecting to 192.168.2.1 [192.168.2.1] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\Username/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\Username/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\Username/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\Username/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\Username/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\Username/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\Username/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\Username/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\Username/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\Username/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
debug1: Remote protocol version 2.0, remote software version ROSSSH
debug1: no match: ROSSSH
debug1: Authenticating to 192.168.2.1:22 as 'Username'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group-exchange-sha256
debug1: kex: host key algorithm: rsa-sha2-256
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<7680<8192) sent
debug1: got SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: got SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: ssh-rsa SHA256:8NFGHVjZiUnZqbzY2VGIkyQ+Qt8abqWNNEQhR2jFd00
debug1: Host '192.168.2.1' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\Username/.ssh/known_hosts:5
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\\Users\\Username/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\Username/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\Username/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\Username/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\Username/.ssh/id_xmss
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\Username/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\Username/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\Username/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\Username/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\Username/.ssh/id_xmss
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory

Username@192.168.2.1's password:
debug1: Authentication succeeded (password).
Authenticated to 192.168.2.1 ([192.168.2.1]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
ug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
ebug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing








MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 6.47.4 (c) 1999-2020 http://www.mikrotik.com/

[?] Gives the list of available commands
command [?] Gives help on the command and list of arguments

[Tab] Completes the command/word. If the input is ambiguous,
a second [Tab] gives possible options

/ Move up to base level
.. Move up one level
/command Use command at the base level

[Username@750G r3] >
Ou right! Now i have where is a problem.
My private key isn't name "id_rsa"

Who is online

Users browsing this forum: No registered users and 3 guests