---
title: "Automatic logon configuration on Linux OS"
author: "threeman"
date: "2014-07-25T15:35:00Z"
tags: []
slug: "automatic-logon-configuration-on-linux-os"
draft: false
lastmod: "2014-07-27T09:24:35Z"
id: 2096813
url: "https://threeman.iteye.com/blog/2096813"
---

Automatic logon configurationon Linux OS

**1. Regarding to DSA:**  
a) ssh-keygen -t dsa  
b) cat ~/.ssh/id\_dsa.pub | ssh &lt;username&gt;@&lt;remote-host&gt; "cat - &gt;&gt; ~/.ssh/authorized\_keys"

**2. Regarding to RSA:**  
a) ssh-keygen -t rsa  
b) ssh-copy-id &lt;username&gt;@&lt;remote-host&gt;

**3. Switching different node**  
NODE=&lt;node-name&gt;; ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=10 ${NODE}