Question: how to transfer files between two ubuntu machines?
Answer: Edit config. sudo nano /etc/ssh/sshd_config. ... 
Folder options. Enable sharing of the folder. ... 
Set samba password. sudo smbpasswd -a <user name // it will ask you for password sudo restart smbd or sudo service samba-ad-dc restart.
Get hostname: ... 
Change hostname. ... 
Check username. ... 
Check local IP address. ... 
Scan local network.