<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=SSH</id>
	<title>SSH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=SSH"/>
	<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=SSH&amp;action=history"/>
	<updated>2026-05-06T10:25:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://entorb.net//wiki/index.php?title=SSH&amp;diff=5341&amp;oldid=prev</id>
		<title>Torben at 10:52, 17 October 2025</title>
		<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=SSH&amp;diff=5341&amp;oldid=prev"/>
		<updated>2025-10-17T10:52:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Linux]]&lt;br /&gt;
see [https://help.github.com/articles/generating-ssh-keys] [https://en.wikipedia.org/wiki/Ssh-keygen]&lt;br /&gt;
&lt;br /&gt;
===SSH password-free-login===&lt;br /&gt;
all in 1 go (exceute on ssh client machine)&lt;br /&gt;
 ssh-copy-id user@remotehost&lt;br /&gt;
&lt;br /&gt;
====On the ssh-client machine====&lt;br /&gt;
Use ssh-keygen to create private and public keys in the folder ~/.ssh/&lt;br /&gt;
 ssh-keygen -t rsa&lt;br /&gt;
or&lt;br /&gt;
 ssh-keygen -t rsa -C &amp;quot;email@host.com&amp;quot;&lt;br /&gt;
 # ( or -t dsa )&lt;br /&gt;
passphrase can be empty&lt;br /&gt;
The public key is in the file ~/.ssh/id_rsa.pub &lt;br /&gt;
&lt;br /&gt;
adding or changing passphrase&lt;br /&gt;
 ssh-keygen -p&lt;br /&gt;
&lt;br /&gt;
storing passphrase of client via ssh-agent (linux)&lt;br /&gt;
 ssh-agent bash&lt;br /&gt;
 ssh-add&lt;br /&gt;
&lt;br /&gt;
====On the ssh server machine====&lt;br /&gt;
* append your public key to ~/.ssh/authorized_keys (you may have to create this file) &lt;br /&gt;
* set that files permissions to 0640&lt;br /&gt;
* set .ssh/ permissions to 0640&lt;br /&gt;
&lt;br /&gt;
====Windows Client using Putty and PAgent====&lt;br /&gt;
* use PuTTYgen to generate a RSA key&lt;br /&gt;
** set password&lt;br /&gt;
** set comment, for example hostname of client machine&lt;br /&gt;
** store private and public keys&lt;br /&gt;
* edit generated public key&lt;br /&gt;
** remove linebreaks from key&lt;br /&gt;
** prepend ssh-rsa to key followed by a space. So it looks like ssh-rsa AAAAB3Nza...&lt;br /&gt;
* double click on private key to load it into Pageant (key manager)&lt;br /&gt;
* in Putty&lt;br /&gt;
** load your ssh connection&lt;br /&gt;
** put private key to Connection-&amp;gt;SSH-&amp;gt;Auth&lt;br /&gt;
** save connection&lt;br /&gt;
* on Server&lt;br /&gt;
** place public key without comments in ~/.ssh/authorized_keys, see above&lt;br /&gt;
&lt;br /&gt;
===Mount using ssh===&lt;br /&gt;
 apt-get install sshfs&lt;br /&gt;
now you can run&lt;br /&gt;
 /usr/bin/sshfs -o idmap=user server:/home/USER /mount/DIR&lt;br /&gt;
The option idmap=user is important to map the servers and clients user id&lt;br /&gt;
&lt;br /&gt;
(this does not work from fstab...)&lt;br /&gt;
&lt;br /&gt;
===Fix for warning: setlocale: LC_CTYPE===&lt;br /&gt;
 bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory&lt;br /&gt;
can be fixed on the SSH host by&lt;br /&gt;
 sudo vim /etc/ssh/sshd_config&lt;br /&gt;
 # remove this:&lt;br /&gt;
 AcceptEnv LANG LC_*&lt;br /&gt;
 # now restart ssh:&lt;br /&gt;
 sudo systemctl restart ssh&lt;/div&gt;</summary>
		<author><name>Torben</name></author>
	</entry>
</feed>