Hi, All.
I want to integrate IOS router to oxidized. I tried to login with pub key, but IOS asks password.
Status, Current Configuration
Version
RP/0/RP0/CPU0:RTR# sh ver
Cisco IOS XR Software, Version 7.9.2
Copyright (c) 2013-2023 by Cisco Systems, Inc.
Build Information:
Built By : deenayak
Built On : Wed Jun 28 22:48:00 PDT 2023
Built Host : b25a49aa1283
Workspace : /auto/srcarchive16/prod/7.9.2/ncs5500/ws
Version : 7.9.2
Location : /opt/cisco/XR/packages/
Label : 7.9.2
cisco NCS-5500 () processor
Key Imported
I referred the following article; https://community.cisco.com/t5/xr-os-and-platforms/i/td-p/2516810
RP/0/RP0/CPU0:RTR# sh cry key authentication rsa all
Key label: XXXX
Type : RSA public key authentication
Size : 1024
Imported : 09:40:34 KST Thu Apr 18 2024
Data : ...
User
RP/0/RP0/CPU0:RTR# sh run username XXXX
username XXXX
group read-only-tg
!
SSH
RP/0/RP0/CPU0:RTR# sh run ssh
ssh server rate-limit 600
ssh server vrf mgmt
ssh server vrf default ipv4 access-list ACL-SSH2
ssh server netconf vrf default
Problem
Router asks pasword, when I tried to access with pub key.
my-imac $ ssh -i XXXX XXXX@RTR
| ########################################################################
| # - WARNING - #
| # A notice that any unauthorized access to this system is unlawful. #
| # and can be subject to be punished civil and/or criminal. #
| # Any of your attempt to access to the system is logged. #
| ########################################################################
(XXXX@RTR) Password: