Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have an issue in which I want to connect to a different host computer that exists on the same public IP (Say, 82.90.233.234). Are both forwarded to the same port? For example, I connect my Raspberry pi using pi#82.90.233.234, which I can do easily. But I also have a desktop I want to access via SSH at a different desktop#82.90.233.234.
Is there a way that is can be accomplished?
Disclaimer: Those are not actual IPs.
For example, I connect my Raspberry pi using pi#82.90.233.234, which I can do easily. But I also have a desktop I want to access via SSH at a different desktop#82.90.233.234. Is there a way that is can be accomplished?
If you are actually using different usernames as in your example, you could have one computer listening for ssh connections # 82.90.233.234, and for user pi spawn a shell session and for user desktop automatically spawn an ssh session to your desktop host.
You could set up port forwarding so that the default port 22 would be your raspberry pi, but connecting to port 2200 would forward to an ssh server on your desktop. You could set up aliases in your local .ssh/config file:
Host pi
Hostname 82.90.233.234
User pi
Host desktop
Hostname 82.90.233.234
User desktop
Port 2200
With this in place, you could ssh pi or ssh desktop and ssh would pick the remote username and remote port from your configuration file.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have an Ubuntu VM (running on MacOS host) and am trying to connect to another box that is running Linux (busybox, IIRC).
I can ssh from machine A (Ubuntu-VM) to machine B (busybox). I can ping from A -> B, but I cannot ping from B -> A.
Machine A has IP of 10.0.2.15, B has IP of 10.1.10.216.
My ultimate goal is to be able to use wget on B to get files from A, and I'm hoping that solving this ping problem will allow B to see A and allow magic to occur.
My network comprehension is near zero, so this is probably trivial, but any help greatly appreciated.
As you are using a NAT interface, Virtualbox will mask all the traffic from your virtual machine to the outside network using the IP address of the host. To clarify this, the traffic that is arriving to computer B is from 10.1.10.97 (Your MacOS host), and that is why B can return that traffic to A, because it is actually sending it to the host and Virtualbox is translating the destination address to the NAT'd virtual machine.
You have two alternatives:
Change the adapter type to Bridged (This will change the IP address on the Ubuntu machine but is also the easiest if you have little networking knowledge).
Forward a port in the host to the machine A (I see this as the most suitable solution without changing the architecture)
For case 1 is as easy as change the settings in Virtualbox and then get the new IP.
For case 2, what you should do is go to the Machine Settings, in the network section, expand Advanced and set a port forwarding, for instance:
In this way, from computer B you will be able to wget from the host IP (NOT the 10.0.2.15, the 10.1.10.97) on port 8080, and this traffic will be forwarded (Destination NAT'd) to 10.0.2.15 using: wget http://10.1.10.97:8080/path/in/ubuntu
You will never be able to point directly from 10.1.10.216 to 10.0.2.15 as machine B has no routes to 10.0.2.15
I recommend you read a little bit about NAT (https://en.wikipedia.org/wiki/Network_address_translation)
There's a lot of assumings in this answer, I hope it helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have an Apache Web Server installed on Ubuntu 16.04 in a VM, the problem I'm having is that my server doesn't seem to have its own IP address. I tried using hostname -I but only a blank line appears, while ifconfig shows 127.0.0.1 and 10.0.0.2.
The problem I suspect is that it's related to the network settings of my VM since when I imported it to the computer laboratory at school, the commands hostname -I and ifconfig showed an IP address like 192.xxx.x.xx, I tried searching around but I can't find similar problems where the host machine is connected to a router via wireless connection. What can I do?
EDIT:
VM software being used is Oracle VM VirtualBox Manager
Network Settings:
Because "Bridged Adapter" is used the router acts as DHCP server.
There are 2 solutions if you want to access a server located at VM from host without network connected:
Set adapter as Internal network see details
Note: in this case Internet cannot be accessed through this interface.
You would probably like to add another Bridged or NAT adapter to acceesss external network
or NAT details (how to setup)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using PuTTY to connect to an intermediate Linux based server. On that server I use ssh to connect to the (Linux based) server I try to target. On that server I want to run a program, but I have to send it to that inner server from my PC. A direct connection is not possible.
At the moment I use PSFTP to the intermediate server and PuTTY+sftp from the intermediate server to the inner server to send the file, but this takes a lot of work to do everytime.
Is there a way to use FileZilla to set up an SFTP connection to the inner server through the intermediate server?
So in stead of:
PSFTP: PC -> user#intermediate
PuTTY: PC -> user#intermediate
sftp: user#intermediate -> user#inner
I want:
FileZilla: PC -> intermediate -> user#inner
You can setup an SSH tunnel (aka port forwarding) using PuTTY from the intermediate server to the target server and connect with FileZilla to the tunnel.
See details on port forwarding in PuTTY.
Or see a specific guide for setting up port forwarding to tunnel file transfer client (WinSCP particularly, though you can apply it to FileZilla easily).
Actually, WinSCP SFTP client has a (single step) tunneling functionality built in. So, with WinSCP, it is very easy to do what you ask for. See the Tunnel page of its Advanced Site Settings dialog.
(I'm the author of WinSCP)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
One of our DBs is behind firewall.
I could not use it through its natural port 1521.
I also know the same machine is accessible through the SSH port ( 22)
My friend showed me BitVise SSH Client, so that by tunneling through the SSH port , I accessed the invulnerable 1521 port and used my favorite Sql Developer tool.
My question is , how do you tunnel some data through the SSH port, what is the mechanics ?
I.e. is there some SSH command like, "after successful login pass the data as is to the given port"
You need to use a SSH client to connect to the Bitvise SSH server. Bitvise also has a client product called Bitvise Tunnelier that you can configure to use port forwarding. You would configure Tunnelier to listen for and forward a specific port (the SQL connection in your case). Then, you would configure your SQL Dev Tool to connect to localhost: and connect.
More information about Bitvise and port forwarding:
https://www.bitvise.com/port-forwarding
This link will show you how to use Port Forwarding with Remote Desktop, but you can adapt it to use it for SQL, etc:
https://www.bitvise.com/remote-desktop
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to log in to my computer at work through cyberduck.
I can ssh into the computer just fine but I must first SSH into the central system, then ssh from there into my computer.
Is there a way to allow Cyberduck to ssh into my work computer, i.e. ssh twice at once?
You can use e.g. PuTTY to set up the port forwarding, also called an SSH tunneling (for purposes such as yours).
See https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter3.html#using-port-forwarding
Alternatively you can use an SFTP client that supports this natively, e.g. WinSCP.
There's a guide for this here:
https://winscp.net/eng/docs/guide_tunnel
Note that aside from instructions, how to do this using WinSCP native tunneling functionality (section Section up tunnel in WinSCP), the guide also shows, how to tunnel WinSCP via PuTTY (section Section up tunnel using PuTTY for SFTP/SCP session). So if you insist on using Cyberduck, you can just replace WinSCP with Cyberduck in the guide.
(I'm the author of WinSCP)
Yes, you can configure local port forwarding. With it, localhost's socket will be forwarded to your work computer so middle SSH server will work as proxy.