SSH, VNC and FTP
SSH, VNC and FTP
Install SSH
sudo apt install openssh-server openssh-client
sudo systemctl restart sshd
sudo systemctl status sshd
To connect
edit
cat ~/.ssh/config
add
Host <code name>
HostName 192.168.1.108
User <user name>
Port 22
ssh <code name>
Install tightVNC
online install on windows
sudo apt update
sudo apt install lightdm
sudo reboot
sudo apt install x11vnc
sudo nano /lib/systemd/system/x11vnc.service
Copy and paste these commands - change the password
[Unit]
Description=x11vnc service
After=display-manager.service network.target syslog.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
[Install]
WantedBy=multi-user.target
Run these commands after
systemctl daemon-reload
systemctl enable x11vnc.service
systemctl start x11vnc.service
systemctl status x11vnc.service
To connect
use ipaddress: 192.168.1.108
use
Transfer Files
rsync filename username@ip_address:/home/username
FTP
https://linuxconfig.org/setup-ftp-server-on-linux
Install FTP server
sudo apt install vsftpd
create a backup copy
sudo mv /etc/vsftpd.conf /etc/vsftpd.conf_orig
edit the config file
sudo nano /etc/vsftpd.conf
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
pasv_enable=Yes
pasv_min_port=10000
pasv_max_port=10100
allow_writeable_chroot=YES
create a user (optional)
$ sudo useradd -m ftpuser
$ sudo passwd ftpuser
New password:
Retype new password:
passwd: password updated successfully