Persistent SSH Tunnels: Difference between revisions

Jump to navigation Jump to search
m
 
Line 8: Line 8:
''Note:  This user does not have a password assigned or a shell.  This will prevent user logins to the system.''
''Note:  This user does not have a password assigned or a shell.  This will prevent user logins to the system.''
<pre>
<pre>
useradd -m -s /bin/false autossh   # note: you may need to use /usr/sbin/bash on some systems
useradd -m -s /bin/false autossh
</pre>
</pre>
Now switch to the user and generate an SSH key:
Now switch to the user and generate an SSH key:
<pre>
<pre>
su -s /bin/bash autossh
su -s /bin/bash autossh       # note: you may need to use /usr/sbin/bash on some systems
cd ~
cd ~
ssh-keygen -b 4096
ssh-keygen -b 4096

Navigation menu