from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

87342

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->net-misc->openssh

SSH login without password

You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user b to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script or you are just lazy.

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:

a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again: 
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

Now use ssh to create a directory ~/.ssh as user b on B.

(The directory may already exist, which is fine):

a@A:~> ssh b@localhost mkdir -p .ssh
b@localhost's password: 

Finally append a's new public key to b@B:.ssh/authorized_keys

and enter b's password one last time:

a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password: 

From now on you can log into B as b from A as a without password:

a@A:~> ssh b@B hostname
b@B:~>

Author: Mathias Kettner

http://linuxproblem.org/auth_1.html

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-08-02
cpuinfo - 2026.04.13
Ebuild name:

dev-libs/cpuinfo-2026.04.13

Description

CPU INFOrmation library

Added to portage

2026-08-02

glibc - 2.44.9999
Ebuild name:

sys-libs/glibc-2.44.9999

Description

GNU libc C library

Added to portage

2026-08-02

mame - 0.289-r1
Ebuild name:

games-emulation/mame-0.289-r1

Description

Multiple Arcade Machine Emulator

Added to portage

2026-08-02

netselect - 0.4-r3
Ebuild name:

net-analyzer/netselect-0.4-r3

Description

Ultrafast implementation of ping

Added to portage

2026-08-02

openpgp-keys-gentoo-developers - 20260727
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20260727

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-08-02

openpgp-keys-gentoo-infrastructure - 20260727
Ebuild name:

sec-keys/openpgp-keys-gentoo-infrastructure-20260727

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-08-02

py - 1.11.0-r2
Ebuild name:

dev-python/py-1.11.0-r2

Description

library with cross-python path, ini-parsing, io, code, log facilities

Added to portage

2026-08-02

2026-08-01
alcotest - 1.9.1
Ebuild name:

dev-ml/alcotest-1.9.1

Description

A lightweight and colourful test framework

Added to portage

2026-08-01

awscli - 1.45.62
Ebuild name:

app-admin/awscli-1.45.62

Description

Universal Command Line Environment for AWS

Added to portage

2026-08-01

boto3 - 1.43.62
Ebuild name:

dev-python/boto3-1.43.62

Description

The AWS SDK for Python

Added to portage

2026-08-01

botocore - 1.43.62
Ebuild name:

dev-python/botocore-1.43.62

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-01

claude-code - 2.1.220
Ebuild name:

dev-util/claude-code-2.1.220

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-08-01

cli11 - 2.7.1
Ebuild name:

dev-cpp/cli11-2.7.1

Description

Command line parser for C++11

Added to portage

2026-08-01

compat53 - 0.15.1
Ebuild name:

dev-lua/compat53-0.15.1

Description

Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1

Added to portage

2026-08-01

cryptography - 50.0.0
Ebuild name:

dev-python/cryptography-50.0.0

Description

Library providing cryptographic recipes and primitives

Added to portage

2026-08-01

cutlass - 4.4.2
Ebuild name:

dev-libs/cutlass-4.4.2

Description

CUDA Templates for Linear Algebra Subroutines

Added to portage

2026-08-01

environs - 15.1.0
Ebuild name:

dev-python/environs-15.1.0

Description

Python library for simplified environment variable parsing

Added to portage

2026-08-01

firecracker-bin - 1.16.1
Ebuild name:

app-emulation/firecracker-bin-1.16.1

Description

Secure and fast microVMs for serverless computing (static buil

Added to portage

2026-08-01

flrig - 2.0.12
Ebuild name:

media-radio/flrig-2.0.12

Description

Transceiver control program for Amateur Radio use

Added to portage

2026-08-01

ggml - 0.18.0
Ebuild name:

sci-ml/ggml-0.18.0

Description

Tensor library for machine learning

Added to portage

2026-08-01

gtk4-layer-shell - 1.3.0
Ebuild name:

gui-libs/gtk4-layer-shell-1.3.0

Description

A library for using the Layer Shell Wayland protocol with GTK4

Added to portage

2026-08-01

guessit - 4.4.0
Ebuild name:

dev-python/guessit-4.4.0

Description

Python library for guessing information from video filenames

Added to portage

2026-08-01

ibus-typing-booster - 2.30.11
Ebuild name:

app-i18n/ibus-typing-booster-2.30.11

Description

Completion input method for IBus

Added to portage

2026-08-01

integers - 0.8.0
Ebuild name:

dev-ml/integers-0.8.0

Description

Various signed and unsigned integer types for OCaml

Added to portage

2026-08-01

jupyter-builder - 1.2.1
Ebuild name:

dev-python/jupyter-builder-1.2.1

Description

JupyterLab build tools

Added to portage

2026-08-01

just - 1.57.0
Ebuild name:

dev-build/just-1.57.0

Description

Just a command runner (with syntax inspired by 'make')

Added to portage

2026-08-01

kitty - 0.48.2
Ebuild name:

x11-terms/kitty-0.48.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-08-01

kitty-shell-integration - 0.48.2
Ebuild name:

x11-terms/kitty-shell-integration-0.48.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-08-01

kitty-terminfo - 0.48.2
Ebuild name:

x11-terms/kitty-terminfo-0.48.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-08-01

knot - 3.5.5-r2
Ebuild name:

net-dns/knot-3.5.5-r2

Description

High-performance authoritative-only DNS server

Added to portage

2026-08-01

knot - 3.5.6
Ebuild name:

net-dns/knot-3.5.6

Description

High-performance authoritative-only DNS server

Added to portage

2026-08-01

lrzip - 0.7.1
Ebuild name:

app-arch/lrzip-0.7.1

Description

Long Range ZIP or Lzma RZIP optimized for compressing large files

Added to portage

2026-08-01

m17n-db - 1.8.14
Ebuild name:

dev-db/m17n-db-1.8.14

Description

Database for the m17n library

Added to portage

2026-08-01

matlab - 9999
Ebuild name:

app-emacs/matlab-9999

Description

Major modes for MATLAB .m and .tlc files

Added to portage

2026-08-01

mediawiki - 2.3.1
Ebuild name:

app-emacs/mediawiki-2.3.1

Description

MediaWiki client for Emacs

Added to portage

2026-08-01

meson-mode - 0.4
Ebuild name:

app-emacs/meson-mode-0.4

Description

A GNU Emacs major mode for Meson build-system files

Added to portage

2026-08-01

meson-mode - 9999
Ebuild name:

app-emacs/meson-mode-9999

Description

A GNU Emacs major mode for Meson build-system files

Added to portage

2026-08-01

mgorny-dev-scripts - 85
Ebuild name:

app-portage/mgorny-dev-scripts-85

Description

Handy scripts for ebuild development and more

Added to portage

2026-08-01

mlterm - 3.9.5
Ebuild name:

x11-terms/mlterm-3.9.5

Description

A multi-lingual terminal emulator

Added to portage

2026-08-01

nginx - 1.29.5-r2
Ebuild name:

www-servers/nginx-1.29.5-r2

Description

Added to portage

2026-08-01

nginx - 1.29.7-r3
Ebuild name:

www-servers/nginx-1.29.7-r3

Description

Added to portage

2026-08-01

nginx - 1.30.0-r2
Ebuild name:

www-servers/nginx-1.30.0-r2

Description

Added to portage

2026-08-01

nginx - 1.30.2-r2
Ebuild name:

www-servers/nginx-1.30.2-r2

Description

Added to portage

2026-08-01

nginx - 1.30.3-r2
Ebuild name:

www-servers/nginx-1.30.3-r2

Description

Added to portage

2026-08-01

nginx - 1.30.4-r1
Ebuild name:

www-servers/nginx-1.30.4-r1

Description

Added to portage

2026-08-01

nginx - 1.31.1-r2
Ebuild name:

www-servers/nginx-1.31.1-r2

Description

Added to portage

2026-08-01

nginx - 1.31.2-r2
Ebuild name:

www-servers/nginx-1.31.2-r2

Description

Added to portage

2026-08-01

nginx - 1.31.3-r1
Ebuild name:

www-servers/nginx-1.31.3-r1

Description

Added to portage

2026-08-01

ngx-acme - 0.3.1-r1
Ebuild name:

www-nginx/ngx-acme-0.3.1-r1

Description

An NGINX module with the implementation of the ACMEv2 protocol

Added to portage

2026-08-01

pebble - 5.2.1-r1
Ebuild name:

dev-python/pebble-5.2.1-r1

Description

Threading and multiprocessing eye-candy

Added to portage

2026-08-01

peewee - 4.3.0
Ebuild name:

dev-python/peewee-4.3.0

Description

Small Python ORM

Added to portage

2026-08-01

php - 8.3.33
Ebuild name:

dev-lang/php-8.3.33

Description

The PHP language runtime engine

Added to portage

2026-08-01

php - 8.4.24
Ebuild name:

dev-lang/php-8.4.24

Description

The PHP language runtime engine

Added to portage

2026-08-01

pkgcheck - 0.10.42
Ebuild name:

dev-util/pkgcheck-0.10.42

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-08-01

pkgcore - 0.12.37
Ebuild name:

sys-apps/pkgcore-0.12.37

Description

a framework for package management

Added to portage

2026-08-01

pkgdev - 0.2.16
Ebuild name:

dev-util/pkgdev-0.2.16

Description

Collection of tools for Gentoo development

Added to portage

2026-08-01

pyglet - 2.1.16
Ebuild name:

dev-python/pyglet-2.1.16

Description

Cross-platform windowing and multimedia library for Python

Added to portage

2026-08-01

pysnmp - 7.1.28
Ebuild name:

dev-python/pysnmp-7.1.28

Description

Python SNMP library

Added to portage

2026-08-01

python-discovery - 1.5.1
Ebuild name:

dev-python/python-discovery-1.5.1

Description

Python interpreter discovery

Added to portage

2026-08-01

python-engineio - 4.13.4
Ebuild name:

dev-python/python-engineio-4.13.4

Description

Python implementation of the Engine.IO realtime server

Added to portage

2026-08-01

redis-knot - 3.5.6
Ebuild name:

net-dns/redis-knot-3.5.6

Description

Redis module for Knot DNS

Added to portage

2026-08-01

shtab - 1.9.2
Ebuild name:

dev-python/shtab-1.9.2

Description

Automagic shell tab completion for Python CLI applications

Added to portage

2026-08-01

snakeoil - 0.11.3
Ebuild name:

dev-python/snakeoil-0.11.3

Description

misc common functionality and useful optimizations

Added to portage

2026-08-01

tifffile - 2026.7.31
Ebuild name:

dev-python/tifffile-2026.7.31

Description

Read and write TIFF files

Added to portage

2026-08-01

time-machine - 3.3.0
Ebuild name:

dev-python/time-machine-3.3.0

Description

Travel through time in your tests

Added to portage

2026-08-01

traitlets - 5.16.0
Ebuild name:

dev-python/traitlets-5.16.0

Description

A configuration system for Python applications

Added to portage

2026-08-01

trakit - 0.3.0
Ebuild name:

dev-python/trakit-0.3.0

Description

Guess additional information from titles in media tracks

Added to portage

2026-08-01

translate-toolkit - 3.19.17
Ebuild name:

dev-python/translate-toolkit-3.19.17

Description

Toolkit to convert between many translation formats

Added to portage

2026-08-01

tree-sitter - 0.26.11
Ebuild name:

dev-libs/tree-sitter-0.26.11

Description

Tree-sitter is a parser generator tool and an incremental parsing libr

Added to portage

2026-08-01

tree-sitter-cli - 0.26.11
Ebuild name:

dev-util/tree-sitter-cli-0.26.11

Description

Command-line tool for creating and testing tree-sitter grammars

Added to portage

2026-08-01

trimesh - 5.0.0
Ebuild name:

dev-python/trimesh-5.0.0

Description

Python library for loading and using triangular meshes

Added to portage

2026-08-01

uv - 0.12.1
Ebuild name:

dev-python/uv-0.12.1

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-08-01

uv-build - 0.12.1
Ebuild name:

dev-python/uv-build-0.12.1

Description

PEP517 uv build backend

Added to portage

2026-08-01

wayfire - 0.11.0
Ebuild name:

gui-wm/wayfire-0.11.0

Description

compiz like 3D wayland compositor

Added to portage

2026-08-01

wayfire-plugins-extra - 0.11.0_pre20260801
Ebuild name:

gui-libs/wayfire-plugins-extra-0.11.0_pre20260801

Description

extra plugins for wayfire

Added to portage

2026-08-01

wcm - 0.11.0_pre20260801
Ebuild name:

gui-apps/wcm-0.11.0_pre20260801

Description

Wayfire Config Manager

Added to portage

2026-08-01

websockets - 17.0.1
Ebuild name:

dev-python/websockets-17.0.1

Description

Library for building WebSocket servers and clients in Python

Added to portage

2026-08-01

wf-config - 0.11.0
Ebuild name:

gui-libs/wf-config-0.11.0

Description

library for managing wayfire configuration files

Added to portage

2026-08-01

wf-shell - 0.11.0_pre20260801
Ebuild name:

gui-apps/wf-shell-0.11.0_pre20260801

Description

Compiz like 3D wayland compositor

Added to portage

2026-08-01

yq - 3.4.3-r1
Ebuild name:

app-misc/yq-3.4.3-r1

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2026-08-01

yq - 4.1.2-r1
Ebuild name:

app-misc/yq-4.1.2-r1

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2026-08-01

zsnes - 2.2.2
Ebuild name:

games-emulation/zsnes-2.2.2

Description

Fork of the classic Super Nintendo emulator

Added to portage

2026-08-01

zsnes - 2.2.3
Ebuild name:

games-emulation/zsnes-2.2.3

Description

Fork of the classic Super Nintendo emulator

Added to portage

2026-08-01

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 58.5 ms