-
Notifications
You must be signed in to change notification settings - Fork 0
SSH Connections
Lean's edited this page Mar 23, 2024
·
43 revisions
Install openssh
- sudo pacman -S openssh
- systemctl enable sshd
To start the sshd
- systemctl start sshd
-
Better configure before starting
Open the configurations file
- sudo vim /etc/ssh/sshd_config
- Remove the # on necessary configurations lines.
Simple Setup:
Port
AddressFamily
ListenAddress

Increasing the security is very important so... Create the keypair for the
CLIENT
- ssh-keygen -t rsa -b 2048
This will create 2 keys the private and the public (.pub) in your profile
.ssh/id_rsaIn theSERVERcreate the.sshfolder in the profile that you want to login and create this new file
- vim .ssh/authorized_keys
And paste everthing in .pub key to this file
ssh-rsa AAAAB3NzaC1...
Edit some configurations to disable other types of login
- sudo vim /etc/ssh/sshd_config
Uncomment and Change
HostKey /etc/ssh/ssh_host_rsa_key
PermitRootLogin no
MaxAuthTries 2
HostbasedAuthentication no
IgnoreUserKnownHosts yes
IgnoreRhosts yes
PasswordAuthentication no
PermitEmptyPasswords no
Downloading xorg
- sudo pacman -S xorg
Creating permission for profile
- touch ~/.Xauthority
- chmod 600 ~/.Xauthority
Enabling X11 forwarding for ssh connection
- sudo vim /etc/ssh/sshd_config ``Uncoment and Change`
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
Client connection
- ssh -X user@host
- Download a desktop and start it
Downloading dependencies
- sudo pacman -S lsof pwgen sshfs inetutils xorg-fonts-misc perl-dbd-sqlite perl-capture-tiny perl-config-simple perl-file-basedir perl-file-which perl-switch perl-try-tiny
- auracle clone nxagent
Downloading the server
- auracle clone x2goserver
Creating database for the server
- sudo x2godbadmin --createdb
Check if fuse module kernel is on
- lsmod | grep fuse
Start server
- systemctl start/enable x2goserver.service
Client
- auracle clone x2goclient
Connecting
- x2goclient (GUI Interface)