Tag Archives: SSH

Copy SSH public key to another server instructions

copy ssh public key

Prerequisities

You need to have a public key. If you haven’t generated keys before use:

ssh-keygen -t rsa

copy ssh public key is very simple. there are some ways to achieve this:

Using ssh-copy-id (recommended)

ssh-copy-id user@host

with this very simple command you can copy your public key to any user@host combination

Using scp

scp .ssh/id_rsa.pub user@host2:.ssh/authorized_keys

cd ~/ before.

The different is that scp will create a new file called authorized_keys while ssh-copy-id will add to id.

Development Specialist, Artist and Activist
Personal Website

SSH X11 Forwarding Display using MobaXterm on Windows

Overview

SSH X11 Forwarding Display is a tricky thing to establish on different Windows operating systems.
MobaXterm is a free Xserver and tabbed SSH client for Windows Operating Systems which allows you to run native Linux Applications like they are running on your Windows.
Continue reading

PuTTY Configuration Tips with SSH Connection

Overview

You can find here a few PuTTY Configuration Tips that will save you a lot of time using SSH.
PuTTY is a free and open source terminal emulator application.

Continue reading

Remote Desktop over SSH using PuTTY

Overview

Connecting to a SSH server as a gateway and not directly to a Remote Desktop PC is a safer way to connect and add another layer of encryption without losing performance,
this way you can connect to any client behind a firewall as long as you have port 22 open to your SSH server.
Using Windows Remote Desktop over SSH connection is a very simple task to perform using PuTTY.

tunnel-overview

Continue reading

Remote Desktop over SSH using Tunnelier

Overview

Bitvise Tunnelier makes it easier to Use Windows Remote Desktop over SSH connection.
Connecting to a Secure Shell server as a gateway and not directly to a windows PC, is a safer way to connect and add another layer of encryption.
This way you can connect to any client behind a firewall as long as you have port 22 open to your SSH server.

Continue reading

SSH connection without password between two linux machines

Overview

How to establish SSH connection without password between two linux/unix machines

SSH connection without password between two linux machines

Instructions

  1. Generate the files: [id_rsa], [id_rsa.pub] in the First Machine by typing at command (do not use a password – just hit Enter*) :
    ssh-keygen


    * You don’t want to enter any passwords, because you want to call ssh from a within a shell script.
    ** The randomart is an easier way for humans to validate keys.
  2. Copy (and rename) id_rsa.pub to authorized_keys on Server (run from the same computer you run ssh-keygen);
    scp -r -P 22 /root/.ssh/id_rsa.pub destination:/root/.ssh/authorized_keys
     

    Where destination is server B.

Now you can connect as root without a password between the servers.

Development Specialist, Artist and Activist
Personal Website