VS Code Remote SSH - ssh

I installed the Microsoft Remote - SSH extension and I am unable to SSH to an Ubuntu computer. I can SSH to the computer via putty no problem so I know it can do it. After selecting the extension in the bottom left corner, I select Connect to host and enter username#10.1.2.5. I'm then prompted to choose Linux, Windows or macOS and after I select Linux I receive the following error:
An SSH installation couldn't be found.
It doesn't matter what OS I select, they all give the same error. Below is the SSH client and server installed on the computer.
openssh-client/focal-updates,now 1:8.2p1-4ubuntu0.4 amd64 [installed,automatic]
openssh-server/focal-updates,now 1:8.2p1-4ubuntu0.4 amd64 [installed]
What am I missing?

Related

SSHFS error: remote host has disconnected when trying to mount remote dir from win vm to local mac

I can SSH into the remote win vm without an issue.
I receive the message: remote host has disconnected when I attempt to use SSHFS using the following:
sshfs username#publicIP:/remoteDirectory/ ~/myDirectory
remote machine is an azure vm running win10 pro
local machine is MacOS Monterey using macfuse and sshfs
Any advice would be apreciated.

Can't connect to port 22, Connection timed out

I just recently got into whatever you might call this stuff. I was just trying to send a java file over to the computer I ssh to. But when I went to do it, I just get told
sh: connect to host port 22: Connection timed out
lost connection
If possible I would like it explained very simply because of how new I am to this kind of stuff.
SSH to remote host(VM Ubuntu) from VS code terminal
Install VS Code with Remote Development extension pack.
Install Virtual machine (Virtual box) and Ubuntu running on it.
Check Ubuntu-Network-Settings-IPv4 address (10.0.2.15-default for VM).
Go to your virtual box Settings-Network-NAT Adapter (double-check).
Go to your virtual box Settings-Network-In Advanced-Port Forwarding.
Add this as given below and click ok and hereafter consider 127.0.1.1 for ssh.
portforwardinginVM
View the status and disable firewall settings in Ubuntu VM (ufw command).
In VS Code, View-Command Palette- Add new SSH host .
Add ssh username#127.0.1.1 and enter.
Or go to the terminal window (eg. Powershell) and type ssh username#127.0.1.1, it will ask if you want to update to host lists permanently, asking like yes/no and also your Ubuntu password to confirm.
Now try to connect to the host using username#127.0.1.1 and selecting OS like Ubuntu, then type the Ubuntu password.
That's it you are logged in to your virtual machine and can access files now from your local machine.

Cannot connect cyber ops workstation vm to internet

My stuff include:
mac os with Mojave OS,
vmware Fusion 11,
cyberops workstation as virtual machine.
After installing cyberops vm using vmware fusion 11, I tried to connect the vm to the internet but it doesn't work. I am using wifi on my mac to connect the internet ant it works fine. please help
Try the following:
Open the terminal and type in
$ sudo systemctl start dhcpcd#ens33.service
$ sudo systemctl enable dhcpcd#ens33.service
where ens33 stands for the name of your NIC (you can find the name using the ip address command. If the name is different in your setup you have to change it in the command to yours)

Unable to login in putty using ssh mode throwing fatal error

I have installed Cygwin in my windows machine. And I want to login into cygwin using ssh mode from putty.
I have installed sshd [openSSH]service package in cygwin and it is up and running.
Now I try login Via Putty using port 22 ssh mode it throws the below error.
PuTTY Fatal Error
Couldn't agree a client-to-server cipher (available: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm#openssh.com,aes256-gcm#openssh.com,chacha20-poly1305#openssh.com)
Please help us to resolve this issue.
Upgrading PuTTY from 5.8 to 6.0 helps sometimes.
One could add a supported cipher to "Ciphers" line on the server in /etc/ssh/sshd_config and then restart sshd, but I believe sshd has a reasonable defaults, so I wouldn't do that.

Ubuntu VNC Access Through Port

I am trying to access an Ubuntu machine remotely though "Remote Desktop Viewer". Usually I access it through a series of terminal ssh connections like:
1 - Network 1:
ssh user#newtwork1
2 - Network 2:
ssh -p 2222 user#network2
3 - Ubuntu Machine :
ssh user#IP
This works fine, but I was wondering how to do this using a remote desktop application like "Remote Desktop Viewer" or Remmina.
Any ideas?
You can ssh in through Remote Desktop Viewer, by launching from your desktop and changing the drop-down that reads VNC to SSH. Then simply put your user name and host in the appropriate fields.