發表文章

目前顯示的是 8月, 2015的文章

HP2626 switch ssh key 認證與 ssh login 設定

# 設定管理者密碼 configure password manager user-name admin # 讓ssh 可以登入,可以接受 key 認證 configure crypto key generate ssh rsa ip ssh ip ssh filetransfer aaa authentication ssh login public-key none aaa authentication ssh login local none aaa authentication ssh enable login none aaa authentication ssh enable public-key none show authentication show ip ssh no tftp client ip ssh filetransfer write memory exit exit exit y # 從本地端 copy ssh key 到 switch 上面 mtchang@mt ~/public_html/ks $ scp id_rsa.pub admin@110.111.81.1:/ssh/mgr_keys/authorized_keys We'd like to keep you up to date about:   * Software feature updates   * New product announcements   * Special events Please register your products now at:  www.ProCurve.com admin@110.111.81.1's password: id_rsa.pub                                                        ...

Automatically accept epel gpg key(自動加入 EPEL 的 GPG key)

單機 [root@hmaster ~]# rpm --import http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 ssh 遠端下指令 [root@hmaster ~]# ssh root@hdatanode1 'rpm --import http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7' # 現在直接再 repo 內建就有 epel 的設定套件了 [root@c7 ~]# yum search epel ====================================================================== N/S matched: epel ====================================================================== epel-release.noarch : Extra Packages for Enterprise Linux repository configuration epel-rpm-macros.noarch : Extra Packages for Enterprise Linux RPM macros python3-pkgversion-macros.noarch : Convenience macros for Fedora/EPEL Python 3 packages building # 直接安裝就可以 [root@c7 ~]# yum install epel-release -y # 看看你系統上的 REPO 有哪些 [root@c7 ~]# yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile  * base: ftp.stu.edu.tw  * epel: mirror01.idc.hinet.net  * extras: ftp.stu.edu.tw  *...