Skip to content

Category Archives: Daemons

Use a non-default port with ssh-copy-id

26-Dec-11

Quote a “-p” flag specifying the port with the “user@machine” portion of the arguments; e.g. for port 2234: Hat tip to Mike Gerwitz for getting me looking in the right direction, although the solution described on his blog does not work with the version of ssh-copy-id I have. (Edit: Looks like the same solution that [...]

Generate an SSH Public Key from a Private Key

07-Dec-11

Use ssh-keygen:

Converting SSH Key Formats

25-Jan-11

To convert an SSH key from SSH2-compatible format to OpenSSH-compatible, use the “-i” flag to “ssh-keygen”: -i This option will read an unencrypted private (or public) key file in SSH2-compatible format and print an OpenSSH compatible private (or public) key to stdout. ssh-keygen also reads the RFC 4716 SSH Public Key File Format. This option [...]

Selecting Ciphers in Sendmail

20-Jan-11

The best reference that I’m aware of for this used to be at http://sial.org/howto/sendmail/cipherlist/ – but DNS to that site is currently broken. The site can be reached by IP address, at least for the time being. Distilled instructions: Assuming you are building from source, add the following to your site.config.m4: Next, rebuild the Sendmail [...]

Little-Known SSH Features and Tricks

27-Nov-10

Many more at 25 BEST SSH COMMANDS / TRICKS; three I didn’t know: Copy your SSH public key to your authorized_keys on another host: Login to a host you can’t directly reach, through an intermediary that can reach the host: (The -t flag is necessary to allocate a pseudo-tty.) Use a Wireshark running locally to [...]

Send a page range of a PDF to the non-default CUPS Printer

27-Nov-10

On the command line: Reference: Command-Line Printing and Options

Regenerating an SSH Host Key

26-Feb-10

Use ssh-keygen, just like you would with an account’s key pair: # ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N ” -t rsa # ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N ” -t dsa

Flush Postfix’s Mail Queue

29-Apr-09

Sendmail has: sendmail -q The Postfix equivalent is: postqueue -f