Debian :: Accessing Every Port Of Another Computer Via SSH?
Jan 9, 2011
I am using SSH forwarding for accessing particular ports of a distant computer no problem. I also want to access another computer`s ports as if they are local without individually forwarding ports. In a way this distant computer will become a local computer over the internet. So instead of having localforwarding in my SSH config I just want to be able to say that this IP adress will accept all the port connections, butall those connections will be forwarded to a distant computer over the internet.
I need redirect serial port from ONE computer to ANOTHER computer, and at the another send this port to VirtualBox with WindowsXP.VB needed because i need to use software for windoze I do this:NE computer:socat tcp-l:54321,reuseaddr,fork file:/dev/ttyS0,nonblock,waitlock=/var/run/tty0.lock
ANOTHER computer: socat pty,link=/tmp/ttyS0,waitslave tcp:ONE:54321 Now (at ANOTHER) i've set serial port in VirtualBox as
I work for a company who has a really closed proxy configuration, and I think that only the port 80 is opened, but with a lot of blocked sites.
I guess that for other cases, like bank sites and others, they opened the 443 port too. But other ports are all closed.
I set up a linux server at home, and I need to access it with SSH. However, I can't access my server directly by its IP number,
I don't know why, but probably it's because some rule in the company's firewall or proxy, right? What I did to trick this was create an account on NO-IP.org, which provides me with a DNS to my host. In this moment, my "network" is something like this:
When I try to connect (by my work PC) with "telnet xxxxx.no-ip.org 80", or with Putty, I get a blank screen, no errors, no nothing.
But when I try to do this on another PC, on another network without proxies, I'm successfull. So I really think that is my company proxy thats blocking this way, am I correct?
So I think that the solution for my problem is to create a tunnel, to transport my SSH connection over an HTTP, through the Port 80.
But is there a way to do this?
It would be something like this:
Is that correct?
If so, how could I do this?
I'm trying for a week now, with programs like http-tunnel, proxy-tunnel, and others. But nothing until now.
So, any ideias how could I could communicate my SSH client at work over a HTTP (port 80) connection, over NO-IP, my modem, my server, HTTP to SSH, and finally my SSH server?
I have a digital camera which does not seem to have a drive, yet can hold around 15 photos. The windows software included with it allows Windows to access the photos, but I want to access them with Ubuntu. It has a USB port.
I would like to have a server set up at home and be able to access it using a front end that I would boot from a USB drive. The reason I would do this is because at my university all of the computers are horribly slow, I have a server at home that is fast, I would sit down at one of the computers use a USB drive to boot up the computer and use it as a front end, the computer at home would be the backend. Is this doable? if so how?
I've been trying to figure out how to access tomcat6 pages outside of the computer actually running the tomcat6 server. I can access the tomcat6 web pages fine on the computer running the server, but I can't seem get to it on another. I'm probably not setting it up correctly or something, but I've attempted to access the tomcat6 server by following this form:
I installed Lucid Lynx some days ago. Whenever I try to access Vista from GRUB, the computer restarts. I haven't changed anything about how the computer starts.
I've just added my wife as a seperate user on my desktop and have a question about shared network folders. So /etc/fstab mounts network folders from a second computer and until today I've mounted them to /home/David/NetworkData
This of course means that when my wife logs in she won't see them since they're not mounted to her home folder. So what folder should I use and what tricks so that we both have it visible and accessible in Places from the top menu?
I just got my Ubuntu 10.10 laptop to finally be able to access my Windows 7 Professional's shares, and I'd like to share how I got it working. Whenever I would go to Places > Network on Ubuntu, and then double click on my Windows computer (sometimes after finding it in Windows Network > {workgroup name}), it would immediately bring up a box saying "Password required for {computer name}". My Windows password wouldn't work here, but I didn't even want to be asked for a password. In Windows, under Network and Sharing Center > Choose homegroup and sharing options > Change advanced sharing settings..., Turn off password protected sharing was already selected.
So, I eventually found out that samba (the program Linux uses to talk with Microsoft's SMB network share protocol) has a bug of sorts. The format of the SMB packets coming from a clean Windows 7 is known by samba. However, if you install Windows Live Sign-In Assistant (which is provided through Microsoft Update) on Windows 7, the packets coming from Windows 7 are modified, and samba can not handle this. A patch has been written for samba, but Ubuntu's repositories (which has samba version 2:3.5.4~dfsg-1ubuntu8.1) does not yet have that patch.
Also, it seems Microsoft has stopped Windows Live Sign-In Assistant from appearing in Programs and Features. It doesn't appear even if you specifically download and install it separately. I did, however, notice that the installer calls itself Windows Live Essentials 2011. So I found that in Programs and Features, and uninstalled it. It asked which components I wanted to uninstall, and I selected all of them. Rebooted Windows, and now I can access the share no problem. I also grabbed the offending packet using Wireshark before and after that uninstall. The packet is indeed different. Specifically, without Windows Live Essentials 2011, there is no mechToken in the packet.
The current version of samba available is 3.5.6. I may try downloading and compiling that later, and see if it deals with the change that Windows Live Essentials 2011 makes OK. Also, it may be possible to get the share working without uninstalling every single Windows Live Essentials 2011 component. You may want to try that if you would like to keep a component.
Today I noticed my sdl modem flashing away when I had no internet access programs active as far as I was aware. I did a 'ps ax' to see what was running. I saw nothing that warranted internet access. I didn't recognize the gvfsd-computer process and tried finding documentation about it on my system. I began to feel uncomfortable when I couldn't find anything showing what it was. Finally, I killed the process and the internet access immediately stopped. Research on the net showed that gvfsd-computer is a file browser. I find this very disturbing. Why was a file browser accessing my disk drive (the light was flashing) and why was it accessing the internet without my requesting such an action?
I managed to get the VGA port working ok, but for some reason the DVI port doesn't want to work. I downloaded new drivers for my graphics card, and although it helped fix a few glitches in the system It didn't fix the DVI problem. I am currently running Ubuntu 9.10 and have a Samsung 2443bw monitor with a 1920:1200 aspect ratio.
When one should try to connect to port 3306 of particular ip here e.g. 345.56.67.87 it should be redirected to port 3306 of internal machine. This is the scene : How can I access the particular port of the machine which is behind the router . i.e. From out side internet I would like to connect to the port 21 of the machine (192.168.5.8) which is behind router (345.56.67.87) . Here are the details I tried : both side linux (centos)
1.enabled ip forwarding of router (345.56.67.87)
2.enabled ip forwarding of machine (192.168.5.8)
3.implemented some iptable rules: /sbin/iptables -t nat -A OUTPUT --dst 345.56.67.87-p tcp --dport 3306 -j DNAT --to-destination 192.168.5.8:3306
Well I have a very custom menu and I want to save it to port it to other computer... so how do I do it? Without doing the whole thing over again if possible!
I have a computer which has a public IP.My ISP has allowed only port 22 for my machine to be accessed outside from internet.I want rest of my computers which are connected to this machine be accessible via SSH on internet.I can configure IPTABLES to route different ports to internal machines but since ISP has given only one port for the gateway how can I go for it any guesses. I came across some thing reverse SSH tunneling but that has to keep the connection alive all the time at gateway I want my trusted people to be directly able to access the machines on LAN to which they have account to login in this scenario.
I have installed debian on my laptop and included during the installation the webserver version. Now I want to develop a page locally to test it before I put it on the web. I first had an old reflex, jumping straight away and installing xampp. But then I thought that I already all that it takes as I installed the webserver feature of debian. I installed phpmyadmin ( with the command #apt-get install phpmyadmin) as to be able to create and attribute databases but when I try to log in I have the following message:
"Error #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)"
I googled but I cannot find the mysql.conf (I searched using "find") but with no result. It is all very blury what is going on with this webserver option running on my laptop...
I notice that my bittorrent client is capable of automatically setting up port forwards with my router, and I want to know if I can do the same in a shell script. The reason is, that since my router is stupid and won't let me keep static IP addresses (it seems they forced a DHCP refresh every week to make me want to pay for a more expensive model which doesn't), I need to get my computer to change the port forward to follow my computer's changing internal network IP address. I have a couple of port forward manually entered into my router settings for web interfaces to bittorrent etc, but of course these have a good chance of being invalidated at each DHCP refresh cycle.
I'm having trouble with Webmin. I got it up and running. However, I was changing the 'listen on port' to something other than port# 10000. I made sure ufw was open to the tcp requests on my new webmin port only. UDP has been disabled. I type in my browser my ip address with the new port, and I get 'problem loading page' now. How can I see the tcp port webmin is set from a terminal on the host computer? Do I goto a webmin folder and change a .conf file?
I'm trying to enable port forwarding so I can use my computer as an FTP server to some friends. Here's my setup:
CLEAR wireless modem <--> LAN port 4 on router (not WAN) and LAN port 1 on router <---> eth0 in Ubuntu 9.10
The modem acts as a DHCP server which successfully assigns an IP address to my desktop system. I can also go onto the internet just fine on my desktop, and any other computer that connects to the router.
I have enabled port forwarding on the modem (not the router because it's being used as a switch, and not using its WAN port) to forward ports 21 and 80 to my desktop. What I don't understand, though, is that when I try to FTP to the modem's WAN IP address, the connection is refused. However, when I use websites such as:
They say ports 21 and 80 are open (and not other random ports like 22 or 23 which I tried to see if the site simply said everything was open) but I cannot access my site from a web browser.
I was wondering what it was that's stopping computers from the Internet from communicating with my computer? The modem? The router? Configs?
I have a need to displace a serial port from one Linux computer to another computer running Windows (XP.) I am running Heyu on a Linux machine in a closet. The power leg for that circuit cannot let the X10 communication reach most of the rest of the house. Where it does work, is from my office but there I am running XP computers only.
I would like to plug the CM11A into my XP computer, share it's serial port and have the home automation computer (running Heyu and Linux) use the LAN to get to the XP serial port without Heyu knowing it is not a local port. Has anyone done this? Can I share a serial port in XP? Can I get Linux to map a serial port to a virtual one on another machine?
I have a computer with two interfaces eth0(LAN) and eth1(WAN).I have followed some guides on the internet and came up with this iptables configuration:
# Generated by iptables-save v1.4.4 on Wed Apr 20 09:43:12 2011 *nat :OUTPUT ACCEPT [0:0]
while my brother was browsing the web on my windows partition he had a blue screen pop up, one of the soft/hardware error ones, not a true BSOD, anyways, ever since my lan port on the computer seems to not be activiating as no wired connection is recognized. The lan port/card is directly attached to the Mother Board, it's a gigabyte motherboard in a self-build computer. I'm just wondering if there's anything I can do to troubleshoot this and see if it is truly a hardware problem or if its something else.
I want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:
nc: connect to localhost port AAAA (tcp) failed: Connection refused while nc -v -w2 -z localhost BBBB
I've tried to search online but I can't find anything that works on our netbook. The netbook has a default Squeeze installation. After inserting the microSD card (via a "microSD card adapter" into the built-in slot), when I double-click on "Computer" on the Gnome desktop, it shows "Multiple Card Reader", but I can't access it. fdisk -l doesn't show any new devices, but dmesg does show the following:
[ 2532.101119] usb 1-5: reset high speed USB device using ehci_hcd and address 8 [ 2542.344135] usb 1-5: reset high speed USB device using ehci_hcd and address 8 [ 2558.588138] usb 1-5: reset high speed USB device using ehci_hcd and address 8 [ 2558.836073] usb 1-5: reset high speed USB device using ehci_hcd and address 8
[Code]....
I can't mount /dev/sdb or mount /dev/sdb1 (fdisk only shows "sda1-3"). The system simply reports that "special device sdb does not exist", although during one attempt I did get a message saying "block device sdb (or sdb1) something...".
It's imperative that I can access this microSD card. It will be put into my mobile phone so I can have the Star Trek: The Next Generation theme tune as the ringtone. I'm sure you all - as will all of humanity - realise the importance of this endeavour
I have a blackberry bold and I am running squeeze with gnome. I want to be able to pull files off the bb via usb. When I connect the bb to my computer, the bb asks me to key in my password. Also, Under Places -> Computer, I can see an icon for the blackberry.
However, when I double click on the blackberry icon it does not open. Running "mount /dev/sda1" from the shell, I get "mount: mount point /media/sda1 does not exist".
i just installed avlinux wich is based on debian.im using lxde,and im used to gnome,when i want to access files as rootin gnome i just use "gksudo nautilus".but i dont know of a command forlxde that has the same effect.can someone tell me if there is a similar
I got a ftp server (proftpd on debian) on machine "A" and I got a Samba Server (debian also) on machine "B" with a shared folder called "public". how do I access the shared folder via FTP?
I already tried the following command: mount -t smbfs //machine B/public /media/public And the following message appears: mount: special device //machine B/public does not exist
But the folder public is already shared cUz I can access it using Windows XP.
I am using XP at work. I want to get to my home XP box. I have been using VNCTight with port forwarding from my router to get to my home box. I have a Debian server I use just for SSH (no graphics). I would like to open a SSH tunnel to my Debian box, then open a VNC connection that will go through the ssh and then be forwarded to my home XP box. This way everything from my work computer (or wireless laptop) will be secure to my internal network. I know that I can buy software, but that is not as fun and I wont be learning anything that way.
I currently have a Samba share on a Debian 7 system. This share was only ever used by Windows systems on the network.
I just finished setting up a Debian 8 system with Xfce, and now I would like to connect to the share. I already installed gvfs-backends and gvfs-bin. When I go to Thunar file manager, and click browse network, I'm presented with a "Windows Network" shortcut. When clicked it says: Failed to open "Windows Network". Failed to retrieve share list from server: No such file or directory.