Networking :: Identifying Multiple Ssh - Tunnels?
Sep 7, 2010
got the problem with multiple ssh-tunnels. The case is:I have 1 server running Slackware 13.0 with external ip and few windows-machines. inetd daemon is running on the server, my script is listening on port 2345. I create multiple ssh-tunnels from client machines to the 2345 port of the server in order to initiate script execution. For debugging reasons the script simply echoes the incoming information to the connection initiator. This is how the connection is initiated.
Code:
ssh <user>@<my_server_IP> -L 5555:<my_server_IP>:2345
echo "hello"|nc -vn 127.0.0.1 5555 (a port on a client-machine, that is forwarded to <my_server_IP>:2345)
gives "hello" output.
Code:
client1 port 5555|----ssh-tunnel---- eth0|-------server---------------|
[Code]...
The problem is that i need my script to execute some commands (registry parsing) on a remote client machine with winexe utility. So I need to identify each tunnel or each connection in order to execute the command on each of the client workstations. I need at least to have access to some ID of the ssh session or a tunnel, through which a certain connection was initiated and then use it to create a reverse tunnel or just connect to certain client via that client`s tunnel.
View 3 Replies
ADVERTISEMENT
Jul 26, 2011
I am looking at using reverse SSH tunnels to manage servers on client sites. I have played around with reverse tunnelling, and have it working on one server back to my middle man server from which I can SSH across from my own PC. All working fine. When I scale this up to 100+ servers reverse tunnelling in, usernames & passwords become a pain, so I'd prefer to use RSA keys instead. My question, finally you might say, is this, to successfully ssh from my PC to the remote server, do the RSA keys need to be on the middle man server as well, or is it just my PC and the remote server?
View 1 Replies
View Related
Jul 24, 2010
How can i create tunnels in Linux I use MyTunnel in Win for tunneling But i don't know how can i do that in Fedora 13
View 7 Replies
View Related
Jan 6, 2010
I have multiple ssh tunnels that I need to run on startup. Does anyone know a working way to do that? I have tried creating a script and putting it in all sorts of directories (/etc/init.d/, /etc/, /etc/network/if-up.d/). I have also tried appending the commands to /etc/rc.local but nothing works. The script is actually executed in all these places because I tried putting a simple mv command in there and that was executed but these ssh tunnels won't be constructed. My script looks something like this:
#! /bin/sh
xterm -e ssh ....... &
xterm -e ssh ....... &
xterm -e ssh ....... &
I also have another program that I would like to run along with the ssh tunnels. The program needs to be run as root, but that won't work either.
View 9 Replies
View Related
Apr 17, 2011
I want to login to my university server, in windows i used Putty and rdp.the setting in putty (download to my ubuntu and runnig) SSH-> tunnels
destination: 2.bgu.ac.il:3389
source port:7000
on local
session SSH type 1.bgu.ac.il port:22
so far so good i logged in and i can see the files on the 1.bgu the next step is to open RDP and ask him to login localhost:7000Not Working, i use Gnome-RDP and Remmina Remote Desktop Client no luck on both.
View 1 Replies
View Related
Feb 4, 2010
Starting from January, my Internet connection has become "unstable". I mean that I get occasional interruptions of the connection. This is particularly annoying while listening to a webradio or using voip. Of course, prior to January 2010, I could stay hours or days without interruptions. Now, I have to reconnect manually every 5 min to the service although the reconnection to the ISP is done immediately. So, before I take my axe and visit the office of my ISP, I would like identify where is that connection drop happening. Is it at my pc? at the ADSL modem/router? or the ISP? I use a wireless connection with WPA to my router. Then, the router is basically an ADSL modem. I am running Kubuntu locally. How can I follow up on the network status between different elements and see who is cutting off my connection?
View 1 Replies
View Related
Dec 23, 2008
I boot linux off a USB stick on many different computers with different hardware. How can I determine in a script which devices eth0, eth1, wlan0 exist and which hardware devices they apply too? Sometimes a wireless card is wlan0, other times it is eth1 or even eth3! The proc/net/dev file does not inidicate which hardware is installed.
View 2 Replies
View Related
Dec 12, 2009
following on from [URL] I was having a little think about how to make this concept more secure. its easy enough to separate known and unknown clients out via MAC address. but that system is easier to break than it is to set up either, sniff out a mac address already connected to the system, and spoof that address.or, more simply, set a static IP on your wifi device, and avoid the redirection completely. so, is anyone aware of a relatively straight forward setup that would allow me to identify clients on my network without relying on MAC address, would more forcefully separate out known and unknown hosts (vlan??). As well as doing so without alerting them to the fact, and without requiring known hosts to do anything special, or install software. Or requiring any more hardware than I have already. (hardware = a debian box with 2 NIC's acting as a gateway between all internal network, and the billion router which handles the outside world not getting in, and a WAP attached to the internal side of the network. also somewhere I have a wifi card that I could attach to the server to replace the AP) I assume some sort of authentication mechanism is required, but I dont know much more past that.
View 2 Replies
View Related
Dec 19, 2010
I can create a tunnel with the autossh command. Is there a way to view all SSH tunnels created by that command?
View 2 Replies
View Related
Jun 28, 2011
So unfortunately I live in a place that will not let me have a static IP, so I have been setting up access to my home computer via reverse SSH tunnels that run on an micro amazon ec2 instance. I have gotten SSH to work fine, but I cannot figure out port forwards.Here is a small infographic I made to help illustrate (i felt the question was clearer with a diagram of what I was trying to do. Here are the commands listed in the graphic:I the following on my home computer: ssh -R 1337:localhost:22 -i .ssh/tokyoMinekey.pem ec2-user@ec2serveraddressand I run this on the ec2 server: ssh -L6600:localhost:6600 -Nf localhost -p 1337
View 2 Replies
View Related
Apr 1, 2011
if I'm connected to one of VOIP Providers using a VPN connection to this provider, how the government will know that I'm doing such this issue ? how can I mis-track that activity ?
View 1 Replies
View Related
Nov 6, 2010
So I have a bunch of CDs I have burnt over the past year or two, and only problem is, I would burn them, use it and forget about it. I never bothered labelling it. Now, I want to label them appropriately. Is there any way I can find out the following just looking at the CD contents-
1. Distribution - lucid / karmic / etc
2. Architecture - amd64 or i386
3. Type - server, desktop, alternate etc
I know if I boot into the machine from the CD drive, I can find out, but I prefer not having to do that
View 1 Replies
View Related
Dec 23, 2010
How do we check as to how many links have been created that point to a particular file?
Let's say there is this file /work/contacts.dat
and we have, let's say, 10 soft links that have been created by different users in their home directories. Now how can I figure by looking at the file /work/contacts.dat that there are 10 (soft or hard)links pointing to this particular file so that I know that it is being used or refered to by those many users and before deleting it I can check with them.
View 3 Replies
View Related
May 31, 2010
I just encountered a very weird issue and I am having hard time replicating and identifying the root cause. We have one RH9 server and we received an alert that the /var reached 85%, I checked and found out that /var/log/audit.d is occupying most of the space. It has a lot of files inside it consisting file size of 21MB each everyday. I ask the customer if can housekeep and it eventually climbed up to 100%. My colleague did some house keeping but what he did was he compressed the audit.d directory and remove it.
After that users are complaining they cannot telnet to the server even though the service is on. I have recreated the audit.d directory and restarted the xinetd as usual. Still the same problem. And the weird thing is that I cannot even switch to any user from the root. I tried to do "su - someuser" but it hangs there without doing anything. I also tried to telnet, it will ask for login and password but same thing it hangs in there. Did some restart on xinetd and did "chkconfig telnet off" "chkconfig telnet on" but with no success. Could this be caused by the deletion of audit.d? Or is the 100% utilization of /var the system could not cope up? The good thing is everything worked fine after restart. But still the root cause is unknown. If I check /var/log/secure it shows the user being authenticated though it is not getting any session. /var/log/messages also does not reveal anything.
View 3 Replies
View Related
May 20, 2010
I have an old pentium 3 computer that has ~7 NICs installed. These NICs are attached to modems and other networking equipment. According to the linux ping page on computerhope.com, it seems that one could send a ping from a certain specified NIC. How would one go about this?
View 6 Replies
View Related
Jun 16, 2009
I have a CentOS 5.3 box with three network interfaces in it. Each interface is attached to a separate VLAN and I want traffic to stay on each network segment.What I can�t figure out is why I cannot get each interface to have its own gateway and everything gets sent through the default gateway.The basically takes my possible 3Gb total bandwidth and throws it down a single 1Gb pipe.Then on top of that, if I take down the interface (ifdown) that has the current default gateway,I loose contact to the other two interfaces.When I look at the routes, each one of the interfaces shows the gw as 0.0.0.0 and defers to the default route. So I delete the route and try to add a new route with:
[root@testsan ~]# ip route add 10.1.15.0/24 via 10.1.15.1 dev eth2
but end up with the error:
RTNETLINK answers: Network is unreachable
[root@testsan sysconfig]# cat network
NETWORKING=yes
NETWORKING_IPV6=no[code].....
View 5 Replies
View Related
Dec 29, 2010
Tried to test the 10.10 Netbook's Unity but after keying the password I got a "Unity missing driver" without any identification of the driver. Is it available in the repositories? How can I identify it to install it? Why isn't it included?
View 5 Replies
View Related
Jul 13, 2011
I have a setup with a mythtv backend that streams media via the built in upnp to two xbox 360s. This works perfect at the moment. However I need a command/script that can identify if either of the two xbox's are connected via upnp. I need this so that I can have the system auto shutdown if no one is connected using the existing mythtv sleep wake features. (Basically if a script returns 1 then dont shutdown if returns 0 then shutdown.)
Code:
if upnp is connected then
dont shutdown
else
shutdown
fi
Thanks
Chris
View 5 Replies
View Related
Jul 18, 2010
I'm looking for the best way to identify what distro the user is running and what the desktop environment is running. I'm building some pipeline tools for a visual effects studio and need some generic commands for passing paths to the user's file manager from within Maya and Nuke. The workstations I have access to are FC12 with xfce4 so for that I'd pass a system command :
Code: ("thunar "+$path)I've been identifying Fedora workstations with:
Code: # cat /etc/issue
Is there a command to identify what the current window manager is? Preferably something generic that'll work on the other distros as well.
View 4 Replies
View Related
May 6, 2011
a. How can I determine the hardware type of the machine where the linux is running ?
b. Also, what exactly is the difference between machine hardware name and hardware platform ? (uname -m and uname -i)
c. Output from my machine shows,
- uname -i as i386 and
- uname -m as i686
View 3 Replies
View Related
Jun 14, 2010
I just read and learned about logical volume management today. I have a server running RHEL5.4, LVM2. I have 1 physical volume, with one volume group, and 3 logical volumes. I have no free extents, nor do I have any in my volume group (not sure if it's possible to have free in one and not the other anyway), and I am running out of space on one of my logical volumes. Doing a df -h shows 96% of 9.7GB used on /dev/mapper/MainVG-root, mounted at /. So here's the stupid question: how can I find out what directories/files are taking up what space within this logical volume? As I said I have 3 all together, and the other 2 are mapped to /var and a /var pgsql sub-directory. I figured I could get the sizes of the other directories under / and drill down accordingly, but I seem to be missing some basic rule because the commands I am using and the values I am getting don't add up.
For example, it seemed logical to me to do an ls -lsh on / to try and identify the largest directories. Each directory is listed as being ~4-8K in size. That doesn't make sense to me. So I decided to do a du -sh on each directory. Having done this on all of the / sub-directories and added up those values, there is not enough reported usage here to equal 8.9GB of used space (as df -h / reports).how they would find out how the 9.7GB here is being allocated? Preferably without scripts as I am not ready to add a layer of complexity to this yet without understanding some fundamentals.
View 2 Replies
View Related
Aug 3, 2010
I've installed Ubuntu Server, and Webmin following this guide, and all is well so far... I've mounted some drives with some pre-existing data on them, and can view the data on those drives. But I have one drive that I can't seem to mount, and I'm pretty sure there's data on it. But I can't seem to find how to identify what format the data is in, ie.. ntfs, ext2, ext 3, etc. Its likely pretty simple, but how can you identify the drive format before you attempt to mount it?
View 2 Replies
View Related
Dec 20, 2010
identifying the number of cores each processor is running.
I have checked /proc/cpuinfo but i dont find any core details inside it and I can find only no of processor and its speed.
View 7 Replies
View Related
Sep 1, 2011
Ubuntu has been reporting a System error problem but when it try's send a report to your servers, it fails due to it's failure of identifying the packet id, i honestly have no idea of how to go about fixing this problem or even identifying the packet that's broken, please do help, as now my Apache server's not working properly, and a couple of other programs are getting affected by this, event installing and updating s an issue.
View 1 Replies
View Related
May 7, 2011
1. Every Sunday2. Find all files older than 1 day3. Gzip these file4. Tar up the gzipped files into one tar file.5. Name the tarball with a date stamp indicating what day it was created, so we know that week's files are in the file
View 3 Replies
View Related
Jul 6, 2011
I have one router, a linksys. It allows wireless and wired connections, as is normal. I have two XP machinesby wire to the router and three linux machines connected wirelessly. The XP machines both have IP addresses beginning with 192.168. while my three linux machines have IP addresses that all begin with 172. None of the machines is connected with a static IP address. All are automatic DHCP.I am told that the above scenario makes no sense. However, such is what I have so, I trust, the theory and the fact do not gel. I would not care except that I cannot see - using the nautilus network servers program, all of the XP computers with some of my linux boxes.
View 9 Replies
View Related
Jul 1, 2010
I need the following:Running XAMMP on Ubuntu server with one NIC.Only the webserver has to be available on multiple IP addresses.What i have is 4 devices who communicate with server database servers.
Device 1 = Mysql on IP 192.168.0.100
Device 2 = Mysql on IP 192.168.0.101
Device 3 = Mysql on IP 192.168.0.102
[code]...
View 1 Replies
View Related
Jan 13, 2011
I'm trying to setup a CentOS 5.5 with 1 NIC to have several IP addresses on same subnet, each with different MAC addresses. I tried macvlan and multimac but both gives same MAC address (the one of physical NIC) for all IP addresses configured in ARP table on remote hosts. Is it possible to send the 'right' MAC address in ARP requests of corresponding IP address?
View 7 Replies
View Related
Jan 10, 2010
i have 3 external IPs, assigned on eth0, eth0:1 and eth0:2.I have a game bot that connects to a game network, but the game network only accepts a limit of 5 connection from same ip. The game network has multiple IP addresses. (e.g. game.com resolves to 1.1.1.1, 1.1.1.2, 1.1.1.3 etc)How do i specify that certain bot connects via eth0:1 and eth0:2? Currently all bots are using eth0's ip
View 14 Replies
View Related
Feb 19, 2011
I am supposed to set a system such that, a single desktop screen can be seen in multiple proctors. the situation is something like, we have a seminar and the demo will be shown form a single computer.
We will be using Ubuntu, fedora or openSUSE 11.2
View 2 Replies
View Related