Difference between pages "Package:Mosh" and "Package talk:OpenSSH"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m
 
m (update info prepping to move to main article)
 
Line 1: Line 1:
{{Ebuild
== keys ==
|Summary=Mobile shell that supports roaming and intelligent local echo
=== Passwordless Authentication ===
|CatPkg=net-misc/mosh
==== Client ====
|Maintainer=
on your client run
}}
<console>###i## ssh-keygen -t rsa</console>
'''Mosh''' is a ssh client server that is aware of connectivity problems of the original ssh implementation.  Mosh can migrate physical connections and ip addresses while staying connected.  Mosh depends upon {{package|net-misc/openssh}}.  Mosh uses udp ports 60000-61000 sequentially.
Dialogs will be presented, you can press enter several times to accept defaults.


== Installation ==
<code>~/.ssh/id_rsa.pub</code> will be generated.  Copy or append the contents of this file to the servers <code>~/.ssh/authorized_keys</code>
=== Merge ===
Install {{Package|net-misc/mosh}}:


<console>###i## emerge net-misc/mosh</console>
==== Server ====
Create a user, or select which user the client will be accessing the server as,  then place clients id_rsa.pub file into the users <code>~/.ssh/authorized_keys</code>


== Usage ==
==== Single Machine Testing ====
<console>###i## ssh-keygen -t rsa</console>
Press enter several times to accept default settings.
<console>###i## cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys</console>
<console>###i## ssh localhost</console>


Mosh requires utf8 locales set to run. This is the default for Funtoo Linux if you have not set any specific locales.


<console>###i## echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen</console>
== Intrusion Prevention ==
<console>###i## locale-gen</console>
ssh is a commonly attacked service. {{package|app-admin/sshguard}} monitors logs, and black list remote users who have repeatedly failed to login.
<console>###i## eselect locale set en_US.utf8</console>
 
=== Connecting ===
 
remote host only needs running ssh, mosh package installed, and utf8 locale set.
 
<console>$##i## mosh user@remote-host.com</console>
 
{{EbuildFooter}}

Revision as of 02:32, December 28, 2014

keys

Passwordless Authentication

Client

on your client run

root # ssh-keygen -t rsa

Dialogs will be presented, you can press enter several times to accept defaults.

~/.ssh/id_rsa.pub will be generated. Copy or append the contents of this file to the servers ~/.ssh/authorized_keys

Server

Create a user, or select which user the client will be accessing the server as, then place clients id_rsa.pub file into the users ~/.ssh/authorized_keys

Single Machine Testing

root # ssh-keygen -t rsa

Press enter several times to accept default settings.

root # cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
root # ssh localhost


Intrusion Prevention

ssh is a commonly attacked service. app-admin/sshguard monitors logs, and black list remote users who have repeatedly failed to login.