ssh password less authentication

[root@workstation ~]# ssh-keygen?

Generating public/private rsa key pair.

Enter file in which to save the key (/root/.ssh/id_rsa):?

Enter passphrase (empty for no passphrase):?

Enter same passphrase again:?

Your identification has been saved in /root/.ssh/id_rsa

Your public key has been saved in /root/.ssh/id_rsa.pub

The key fingerprint is:

SHA256:QPiGTK1JYF1CP+X5IQshXH8Oi3rn2O36olrvWxIiKWc root@workstation

The key's randomart image is:

+---[RSA 3072]----+

|?o=+== .????|

| .?*=.= .????|

|??+ == * o???|

|??=.o= O .???|

|?. E.o S o???|

|??+ o . .????|

|??. o o .???|

|???o *.+????|

|??..ooB*+???|

+----[SHA256]-----+

[root@workstation ~]# ssh-copy-id root@servera

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys

root@servera's password:?


Number of key(s) added: 1


Now try logging into the machine, with:??"ssh 'root@servera'"

and check to make sure that only the key(s) you wanted were added.

[root@workstation ~]# ssh root@servera

Last login: Wed Jul 19 15:48:27 2023 from 192.168.122.59

[root@servera ~]#

Shahjahan T.

Enterprise Architect | Leading AI-Driven Innovation, Cloud Transformation, Enterprise Integration, and Business Modernization

1 年

Vision of a #passwordless future

回复

要查看或添加评论,请登录

Md. Habibur Rahman的更多文章

  • LAMP Stack vs LEMP Stack!

    LAMP Stack vs LEMP Stack!

    A Web Stack or Web application stack refers to a compilation of software that is together used to build websites or web…

  • How To Install Advanced Intrusion Detection Environment (AIDE) in RHEL 9.

    How To Install Advanced Intrusion Detection Environment (AIDE) in RHEL 9.

    Installing AIDE: To install the aide package: [root@servera ~]#dnf install aide To generate an initial database:…

    1 条评论
  • Mail Server Data Flow Cycle

    Mail Server Data Flow Cycle

    STEP1: Sender send mail using SMTP protocol. SMTP - Simple Mail Transfer Protocol Port Number - 25, 587 (Secure), 465…

    1 条评论
  • How to Set Reverse Zone IP in DNS Server

    How to Set Reverse Zone IP in DNS Server

    Forward DNS maps a hostname to an IP address, reverse DNS (rDNS) indicates that you are mapping the IP address of a…

  • How to "Enable Nested VT-x/AMD-V" in VirtualBox from Windows-10 "Command prompt"

    How to "Enable Nested VT-x/AMD-V" in VirtualBox from Windows-10 "Command prompt"

    Go to windows search and search cmd. Run as administrator "Command prompt" C:\Users\habib>cd "c:\Program Files"…

  • sudo permission

    sudo permission

    [root@workstation ~]# useradd devops; echo "123456"| passwd --stdin devops [root@workstation ~]# vim…

  • IP Configuration in RHEL 9

    IP Configuration in RHEL 9

    [root@workstation ~]# nmcli connection add con-name nat_IP ifname enp1s0 type ethernet ipv4.addresses 192.

社区洞察

其他会员也浏览了