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.
Related
I am trying to connect to my r pi 3 from SSH, using my phone as my hotspot.
I opened up imager and put up the phone's ssid and password along with enabling ssh
enter image description here
My phone(Redmi note 9 pro) doesn't display the IP address of devices connected(only mac addresses) so i connect my laptop to the hotspot and run nmap to get raspberry pi's IP address
I do get but when i use the -
ssh pi#<IPaddr>
I always get a -
ssh: connect to host <ipaddr> port 22: Connection refused
Could it be that the ssh file is not made by imager - because no such file exists in the boot drive after the OS loads up in the sd card. I did try adding a ssh file w/o extention on the boot drive but that also didnt work.
Or is it because the hotspot is slow? I am running on 2.4GHz.
When I try the approach of connecting it to a PC's hotspot it doesn't even connect.
Can anyone address how to properly set up my raspberry pi to access it from the ssh? Is there any other approach like using an usb.
Also I am doing this on a Windows machine, I will not be able to use a monitor to access the r pi, and i also cant install Linux on my machine rn
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.
Im experiencing a problem replicate my putty ssh tunneling with Cmder bash (on windows machine).
1. I want to access web interface on port 7183 on server_2. To get there I have to go through jump_server first and and tunnel twice, as from the jump_server, only visible port is 22.
Steps with putty:
1. connect to jump_server with tunnel (L22 server_2:22) using username_1
2. connect to localhost with tunnel (L7183 localhost:7183) using username_2
After that, Im able to access the web interface when I type localhost:7183 into browser on my local machine.
Now Im trying to reproduce this in Cmder, but I havent been able to do that with one big command, nor 2 separate commands:
ssh -L 7183:localhost:7183 username_1#jump_server ssh -L 22:localhost:22 -N username_2#server_2 -vvv
This is only the last command I used as I tried interchanging ports and hosts without success.
2. Is the syntax different when I want to open port 12345 on my local machine and have it forwarded to port 21050 on server_2 or that would be remote tunneling?
Finally managed to achieve the 1. question with:
ssh username_1#jump_server -L 22:server_2:22 -N -vvv
ssh -L 7183:localhost:7183 username_2#localhost
Now Im albe to access the web interface from server_2 on my localhost:7183
I recently started using docker toolbox on windows and its been quite a hard experience. A lot of things are different compared to running docker on linux as here docker is actually running inside virtual machine.
one of the issues i was still not able to resolve is how to create reverse ssh tunnel to my docker-toolbox VM and bind it to 0.0.0.0 (or to docker0 interface)
i have docker toolbox 1.10.2 and am running windows 7.
motivation: I have mysql server running on my windows machine and i would like to connect to it from my docker containers.
problem: i first tried connecting directly to 192.168.99.1 (the ip of my host windows box inside my containers) ... however that doesnt work. i think the reason is that my windows box is blocking all external connections to it. i cant change windows firewall settings as those are managed by domain.
workaround: i setup ssh connection to my VM (boot2docker inside virtualbox) with putty and i try to setup reverse proxy:
i check the "Remote ports do the same" under SSH tunnels in putty
source port i enter 0.0.0.0:3306
destination i enter localhost:3306
i check "remote" radio button
i then ssh to boot2docker ... netstat -natp | grep 3306 shows me its actually bound to 127.0.0.1
i opened /usr/local/etc/ssh/sshd_config
i set GatewayPorts yes
i restard sshd with /usr/local/etc/init.d/openssh restart
i get disconnected ... when i create new connection and netstat -natp | grep 3306 i see 3306 is still bound to 127.0.0.1 only
same settings in putty (and in sshd_config) work on my debian box ... but not inside boot2docker.
any idea whats wrong ? thanks a lot.
I've got a question regarding Homestead/Vagrant
is it possible to ssh into the Vagrant VM from another computer?
Here's my scenario:
Homestead running into a windows PC with IP 192.168.0.201
Another windows machine with ip 192.168.0.200
From the second windows machine which is my PC I want to ssh into the VM hosted on the other windows machine
if I try
ssh vagrant#192.168.0.201 -p 2222
it doesn't work.
Is it possible to achieve what I want to do? if so how?
Thanks
It should in principle work, but you need to make sure port 2222 is open to outside world on your host machine.
Another option would be switching to using public_network on vagrant machine, but that will cancel all the homestead forwarded ports.