Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: SSH
(view source)
Revision as of 10:57, 31 July 2018
1,029 bytes added
,
10:57, 31 July 2018
no edit summary
Line 200:
Line 200:
ssh-keygen -f "/home/user/.ssh/known_hosts" -R server_dns_or_ip
ssh-keygen -f "/home/user/.ssh/known_hosts" -R server_dns_or_ip
== Enable ssh at boot ==
== Enable ssh at boot ==
−
update-rc.d -f ssh enable 2 3 4 5
+
#
update-rc.d -f ssh enable 2 3 4 5
+
systemctl enable ssh
== Force password authentication ==
== Force password authentication ==
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no example.com
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no example.com
+
== SSH Config ==
+
Path ~/.ssh/config
+
=== Work ===
+
<nowiki>Host fpsim-frontend
+
IdentityFile ~/.ssh/DNC-FKY.pem
+
User ubuntu
+
Host *
+
ServerAliveInterval 30
+
ServerAliveCountMax 2
+
+
Host 10.255.0.*
+
IdentityFile ~/.ssh/rt_rsa
+
User xe50582
+
+
Host leaks.rra.lan
+
IdentityFile ~/.ssh/rt_rsa
+
User xe50582
+
+
Host news.menupayapp.com
+
IdentityFile ~/.ssh/rra_id.pem
+
User ubuntu
+
+
Host 20.1.40.109
+
IdentityFile ~/.ssh/rt_rsa
+
User rra
+
+
Host 20.1.40.*
+
IdentityFile ~/.ssh/rt_rsa
+
User xe50582
+
+
+
Host pdgrt.rra.lan
+
User rra
+
+
+
host geoip.dyndns.org
+
IdentityFile ~/.ssh/rra_springfield.pem
+
User ubuntu
+
+
host rrafara.dyndns.org
+
IdentityFile ~/.ssh/DNC.pem
+
User ubuntu
+
+
host deathnote.rra.lan
+
User rra
+
+
host savvius.rra.lan
+
User root
+
+
+
Host *.rra.lan
+
# IdentityFile ~/.ssh/rt_rsa
+
User xe50582
+
+
+
Host 10.255.0.32
+
IdentityFile ~/.ssh/rra_fake.pem
+
user rra
+
+
Host aws-gitlab
+
IdentityFile ~/.ssh/DNC-FKY.pem
+
User ubuntu
+
</nowiki>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version