Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

21 October 2020

AWS Lightsail ssh web trouble - ubuntu

After upgrading Ubuntu 18.04 LTS to 20.04 LTS ssh via web is broken.

ssh via putty still worked.

I have found the solution here:

https://help.okta.com/en/prod/Content/Topics/Adv_Server_Access/docs/sftd-ubuntu.htm

For servers running Ubuntu 20.04, you have to allow certificate authorities (CAs) to use the ssh-rsa algorithm to sign certificates. To do this, add the following line to your OpenSSH daemon file (which is either /etc/ssh/sshd_config or a drop-in file under /etc/ssh/sshd_config.d/)

To fix it, add following 2 lines to /etc/ssh/sshd_config

TrustedUserCAKeys /etc/ssh/xxxxxxx 
CASignatureAlgorithms +ssh-rsa

Replace xxxxxxx by the public key you can find in /etc/ssh

The public key file is probably called lightsail_instance_ca.pub

Restart sshd service after changing the sshd_config file:

sudo service sshd stop
sudo service sshd start

OR

sudo service sshd restart

Tip: To find the non-comment lines in sshd_config:

grep '^[[:blank:]]*[^[:blank:]#;]' /etc/ssh/sshd_config

Include /etc/ssh/sshd_config.d/*.conf
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
TCPKeepAlive yes
ClientAliveInterval 30
AcceptEnv LANG LC_*
Subsystemsftp/usr/lib/openssh/sftp-server
TrustedUserCAKeys /etc/ssh/xxxxxxx
CASignatureAlgorithms +ssh-rsa

18 August 2011

Hoe beveilig ik mijn PC

Hoe beveilig ik mijn windows PC tegen virussen ?

18/8/2011

Samenvatting

Als je onderstaande richtlijnen volgt, ben je al vrij goed beschermd tegen virussen, trojans en andere ongure programma's.
  1. Gebruik paswoorden van (minstens) 8 tekens
  2. Activeer Windows Update
  3. Installeer 1 anti-virus pakket
  4. Activeer de firewall
  5. Log niet met administrator rechten voor normaal dagelijks gebruik

In detail

  1. Gebruik paswoorden van (minstens) 8 tekens
    Log in als Administrator (Beheerder)
    Een paswoord aanmaken doe je in Control Panel - Users - Selecteer elke user en kies "Create password"
    Gebruik in je paswoord minstens 1 hoofdletter en 1cijfer (en liefst ook nog een speciaal teken zoals !#)
  2. Activeer Windows Update
    Control Panel - Automatic Updates
    Kies voor automatic updates (uur is van geen belang)
  3. Installeer 1 anti-virus pakket
    Gratis en makkelijk: Microsoft Security Essentials.
    Zoek in www.google.com naar
    "microsoft security essentials" site:microsoft.com
  4. Activeer de firewall
    Control Panel - Windows Firewall - Zorg ervoor dat de firewall On staat
  5. Log niet met administrator rechten
    Enkel als je programma's installeert, log je in als Administrator.
    Op andere tijdstippen, log je in als een "limited" user (die kan geen programma's installeren, maar wel uitvoeren).
    Een limited user aanmaken doe je in Control Panel - Users - Create user
    Geef de user een naam en kies voor "limited".
    Geef ook die user een paswoord (zie hoger)