check linux ip
ip a
sudo apt update
sudo apt install -y openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl status ssh
Setting network on VMware
ssh username@192.168.1.7 => change username to your ubuntu username
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
way 1: sudo snap install code --classic
way 2: On vscode
install extension Remote - SSH
Click this symbol
Connect to Host
Save config file
Select this config