Category Archives: CLI

SSH keys & OSX

Put your private & public key on folder ~/.ssh
All private keys must have 600 rights (-rw——-), or they will be ignored.

  1. List your currently load keys:
    ssh-add -l
  2. Load your keys on ssh-agent and store them on OSX Keychain for future use
    ssh-add -K /path/of/private/key

    Eventually type the SSH key’s secret if prompted.

All your SSH keys should have been added to your “session” keychain for the application SSH.
From now on, when you need to connect with SSH, you can load all of your private keys at once with the following command

    ssh-add -A

To go further

Get speedy with a config file

You can setup a config file for your frequently accessed servers, and preconfigure all the connection details:

  • user,
  • ssh port,
  • etc …

Reuse existing putty keys (*.ppk)

Make a good use of puttygen … (To be described one day, maybe …)


I used the following informations found on the web and obviously the manual to get the whole thing working.
Thanks you to each of the authors for their valuable informations.

Adding a Private Key to Your Mac OSX Keychain
Simplify Your Life With an SSH Config File
Using an SSH Config File

CLI memo #1

Here is a quick memo of some CLI commands I use. Just a quick reminder for the few commands I may need on my daily operations.

Today’s task is just creating a vlan on a Brocade network switchs, running NOS (Network OS).

conf t
interface vlan <vlan id>
description <your vlan description>


Update : 2015-06
Yes, you silly Cisco-Admin, you read it right : @Brocade NOS, with this command you don’t create an SVI, but just a vlan 🙂

A quick extract from the Admin Guide:

On Brocade VDX hardware, VLANs are treated as interfaces from a configuration point of view. By default all the DCB ports are assigned to VLAN 1 (VLAN ID equals 1).

The vlan_ID value can be 1 through 3963. VLAN IDs 3964 through 4090 are internally-reserved VLAN IDs.
However, the reserved-vlan command can modify this range. VLANs above 4090 are not configurable. Refer to the Network OS Command Reference.

Here are some links to deep dive in Brocade Network OS, as usual you have to RTFM to become a master:

There is some other basic command I may cover later like VCS, port-channels, etc …