Archive

Archive for the ‘Uncategorized’ Category

3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id

May 29th, 2017 No comments

Step 1: Create public and private keys using ssh-key-gen on local-host

jsmith@local-host$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key]
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Pess enter key]
Your identification has been saved in /home/jsmith/.ssh/id_rsa.
Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub.
The key fingerprint is:
33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host

Step 2: Copy the public key to remote-host using ssh-copy-id

jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
jsmith@remote-host's password:
Now try logging into the machine, with "ssh 'remote-host'", and check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

Step 3: Login to remote-host without entering the password

jsmith@local-host$ ssh remote-host
Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2
[Note: SSH did not ask for password.]

jsmith@remote-host$ [Note: You are on remote-host here]

http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/

Categories: Uncategorized Tags:

Menggunakan 3th-party SFP pada Cisco

February 13th, 2015 No comments

Menggunakan SFP kawe seperti WTD, Finisar, dll di perangkat Cisco tidak akan langsung bisa digunakan.

jika dilihat menggunakan “show interface Gix/xx” akan terlihat

   Gix/xx is down, line protocol is down (notconnect)
………
Auto-duplex, Auto-speed, link type is auto, media type is unknown
input flow-control is off, output flow-control is unsupported

jika kita lihat log “show log” seperti berikut

   2y6w: %PM-4-ERR_DISABLE: gbic-invalid error detected on Gixx/xx, putting Gixx/xx in err-disable state
2y6w: %GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR: GBIC in port 65557 has bad crc

 

Dikarenakan setiap SFP Modul terdapat data didalam EEPROM-nya, Serial Number, Vendor Name & ID, Security code and a CRC. Cisco membaca data tsb, bila tidak cocok, akan menempatkan modul yang tidak cocok tersebut ke dalam “err-disable state”. dalam kasus yang saya alami dikarenakan  “gbic-invalid error” alias Gigabit interface converter gak cocok.

Agak dipaksa dikit, cisco menyediakan perintah rahasia:

   switch(config)# service unsupported-transceiver
switch(config)# no errdisable detect cause gbic-invalid

dan akan muncul peringatan seperti berikut

 Warning: When Cisco determines that a fault or defect can be traced to
the use of third-party transceivers installed by a customer or reseller,
then, at Cisco’s discretion, Cisco may withhold support under warranty or
a Cisco support program. In the course of providing support for a Cisco
networking product Cisco may require that the end user install Cisco
transceivers if Cisco determines that removing third-party parts will
assist Cisco in diagnosing the cause of a support issue.

catatan : DWYOR

sumber

Categories: Uncategorized Tags:

Hello world!

February 13th, 2015 1 comment

Selamat datang di Staff Blogs. Ini adalah posting pertamaku!

Categories: Uncategorized Tags: