General :: SSH Tunnel Commands To List Active/disconnect?

Apr 1, 2010

I've just started experimenting with SSH tunnels. I wanted a way to connect to MySQL on our website VPS but wanted the connection encrypted rather than just using PHP's mysql_connect() function and connecting to the remote IP. This seems to be working great. I'm also looking into autossh to make sure that the tunnel gets reconnected when it drops.is there a command/utility that can list the currently active SSH tunnels? Be great if there was a way of terminating an active tunnel through a command as well. Or is it a case of manually digging through the process list and killing the specific PID like I have been?

View 1 Replies


ADVERTISEMENT

Debian Configuration :: How To Show Active Ssh Tunnel Connections

Apr 23, 2011

My Debian server is used by people to set up ssh-tunnels for use as a local proxy ( on their remote machines).Since only the tunnel is setup, and no shell is used, I can't use "who" to see which users have an active ssh-tunnel on my server, but I would like to have an idea about who is active etc. I think I should be able to determine this from the auth.log file, but then I would have to use some script to determine what connection is still active. Is there an easy way to see what users have active ssh-tunnels on my Debian server at any given moment?

View 3 Replies View Related

General :: Making A ('list'?) Of Commands To Run?

Dec 11, 2010

i have a java program and to run it, i have to go into terminal and typecd <where the file is>java -jar <filename>.jarthis works fine, but is there a way to make a shortcut/small program to do this for me when i double click?

View 3 Replies View Related

General :: How To List Folders Using Bash Commands

Sep 14, 2011

Is there any way to list just the folders in a directory using bash commands? ( as the ls command lists all the files and folders )

View 3 Replies View Related

General :: Capture A List Of All Installed Commands?

Jan 30, 2010

if I open a terminal and hit [TAB] [TAB] it will display "Display all 2583 possibilities? (y or n) ". If I press y is there a way to capture the output and write it to a file? Not like it is a command so I can't just use a redirect to a file? If not I guess I could just do an ls on all locations of $PATH and capture that to a file.

View 7 Replies View Related

General :: CLI Commands To Generate Random Result From Specified List?

Jul 20, 2011

List of 77 lines with the names of movies. For ease, let's say it's in a text file. What I want is a command line argument I can pass that'll read each line and pick one of those 77 lines at random, except I can't figure out how to do this. Is there a program I can just pipe the output of 'cat listofmovies.txt' to?

View 13 Replies View Related

General :: Using The Expect And Send To Execute List Of Commands Inside A File?

Feb 2, 2011

i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands. i can read the telephone numbers and insert them into the command with no problem, but when i try to insert these commands into the send i face problem. here is the basic code

#!/bin/bash
read msisdn < input
string="ZZZZ:MSISDN=$msisdn;"

[code]....

i can make external loop inside the Bash which read the input file and issue the command and then telnet and execute, but this will make the script connects and disconnects again for each line which cause high load on that server and hardwar problem. i am wondering if there is an option inside the expect interperter which makes the send read directly from a file... somthing like this:

expect "<"
send "input-filename
"
expect "<"
expect eof

View 1 Replies View Related

Networking :: Active FTP Using Raw FTP Commands / Turn Off Passive Mode Using It?

Apr 1, 2009

Can anybody have an idea of an ftp client code using raw ftp commands.

OR
Can anybody tell me how to turn off passive mode using raw ftp commands.
PASV is the command which turns on passive mode but there is no such alternative of active mode.
I have already tried using pasv_enable=NO in vsftpd.conf but that is not working.

View 1 Replies View Related

Ubuntu :: A List Of Basic Commands?

Nov 9, 2010

From where can i get a list of basic commands that can be run from the terminal from ubuntu ?for example:nautilusmounttopapt-get

View 9 Replies View Related

Hardware :: Commands To See The User List?

Dec 24, 2010

I want to see the users list and the permissions of the users when i logged in a root and how to change the permissions of the users. 2.How to change the permissions for the commands. example:when i logged with my other user account(not with root user) i dont have a permission to use the move(mv) command. #mv filename /backup my error : Permission denied. I need to know how we can set the permissions for the commands even.

View 1 Replies View Related

CentOS 5 :: Get A List Of Terminal Commands?

Jun 12, 2010

I would like to find documentation on all the available terminal commands and syntax for CentOS 5.

I have googled and looked through the wiki and found nothing about the terminal to my ability.

As for what I am referencing by commands:

sudo: I get the su means super user

cd: change directory

rm: remove, I don't know how to remove folders.

General navigation and using the terminal to create files/directories/open file editor/etc..

View 3 Replies View Related

CentOS 5 :: Getting The List Of Commands For Vi Editor?

Dec 22, 2010

For example, when I want to have an identical line to the above line, I must press "yy" and then P (or p). Could somebody give me the list of such commands.

View 6 Replies View Related

Ubuntu :: Find A Complete List Of Commands For The Terminal?

Jan 24, 2010

Were can I find a complete list of commands for the terminal in ubuntu linux 9.10

View 9 Replies View Related

Ubuntu Servers :: Cannot Find The List Of CLI / Console Commands For Deluge

Jun 27, 2011

I for the life of me can not find the list of CLI/console commands for Deluge. I'm trying to at least find the command to change global download speed.

View 3 Replies View Related

Ubuntu Servers :: Get A List Of Both The Local Groups And The Groups In The Active Directory?

Feb 4, 2011

I already know of a work around to fix this problem, but I guess my question is why is this not working as expected? I am using a Windows Server 2008 R2 Active Directory for authentication.

I have run auth-client-config for the ldap profile and pam-auth-update. When running getent passwd, I get a list of both the local users and the users in the active directory (with populated information in the Unix schema extension). When running getent group I get a list of both the local groups and the groups in the active directory (with populated information in the Unix schema extension).

Interestingly enough, though, when I run su DOMAINUSER, after the prompt for the password I get an authentication error. In /var/log/auth.log I can see an entry with pam_ldap: missing "host" in file "/etc/ldap.conf". The SRV records in the DNS servers resolve correctly. I've checked this with nslookup and I have seen the records within my zone file. Obviously if the ldap.conf file is working with getent and the ldap server is resolving from the SRV records, it is working fine.

The interesting part is that the Windows Server 2008 R2 AD machine shows in the event viewer that there was a successful authentication, yet the Ubuntu box says no. When I add the host within the ldap.conf file, everything works...getent and the actual authentication, either initial login or su.

[Code]...

View 1 Replies View Related

Programming :: Active Forum / Mailing List For C Programming?

Apr 19, 2010

Just i want to ask doubts in c programming. I dont know whether this is the right place to ask doubts in c. If this is not a correct place, may i know where can i get help for c programming?is there any active forum or mailing list for c programming?

View 6 Replies View Related

General :: How To Auto-disconnect And Connect

Jan 19, 2010

I am checking something out in my connection and I just wanted to ask, is there a way to auto-disconnect and connect from the internet.For example say I want to disconnect now and reconnect to the internet in 0.05 seconds, is there any program that does that on Fedora Linux?

View 1 Replies View Related

General :: Disconnect Process From System Console?

May 9, 2011

I have a long-running process that was started in bash terminal on Debian. Unfortunately it wasn't started inside screen.
Is there a way to disconnect this process from current console and connect to it from screen?

View 1 Replies View Related

General :: F14 - OpenVPN Disconnect Automatically After Login

Jan 15, 2011

I'm using openvpn under linux OS which is Fedora Core 14, in the folder "/etc/openvpn" i put 5 files which belongs to the network server that I should connect to, files are :
two files with the extension ".crt"
two files with the extension ".key"
one file with the extension ".conf"

Now, when I issue the following command (as root) :
Code:
/etc/init.d/openvpn start
It asks for my username & password to the network server, & after I entered the required authentication information, I successfully login, but I get disconnected automatically after two or three seconds.

- I connect to the network without any disconnection or problems under windows
- I use openvpn version "openvpn-2.1.1-2.fc13.i686"
- there was a bug in my OS "Fedora core 14" which is that I cannot activate or deactivate any ethernet cards, which solved by disabling NetworkManager in all run levels
- I disabled iptables
- I disabled selinux
- I got this error in /var/log/messages file when I disconnect from the openvpn network "

Jan 15 21:45:15 ViRuS openvpn[4143]: script failed: could not execute external program
Jan 15 21:45:15 ViRuS openvpn[4143]: Exiting
Jan 15 21:45:15 ViRuS avahi-daemon[1494]: Withdrawing workstation service for tun0.

- I couldn't find the file called "/etc/openvpn/update-resolv-conf"

View 4 Replies View Related

General :: How To Truncate File And Disconnect Session

Oct 7, 2010

I have two questions :

1) Is it possible to truncate the file content , not to drop the file ? i.e, I want to just delete a file's content only, not to drop the file .

2) I can find the connectd user using command 'w' or 'who' . Now How can I force disconnect a session from the list of 'w'/'who' command ?

View 1 Replies View Related

General :: PPTP Client - Vpn Will Automatically Disconnect

Jul 26, 2011

I installed Fedora Linux and I am using GNOME. I've created a vpn connection and is connected to the server without problem (Please see attached photos); But after being connected, Upon opening the site ,Vpn will automatically disconnect.

View 1 Replies View Related

General :: After Some Logins 11.04 Started Disconnect From Internet

Apr 30, 2011

i have installed ubuntu 11.04 linux by wubi (windows 7 ultimate is the other operating system). after some logins it started disconnect from internet.

View 11 Replies View Related

General :: Ssh Sessions In Xterms Freeze For Many Minutes Whenever They Disconnect?

Jun 2, 2010

If I ssh to a remote machine and then lose internet connectivity, the session freezes. I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several minutes it will do so.
There must be some way to force it to abort the remote ssh session when connectivity is lost. I'm on a Mac but I believe this happens on cygwin or linux as well.

View 2 Replies View Related

Ubuntu Servers :: MySQL - Setup An Active / Active Load Balanced And High Available?

Mar 11, 2011

how to setup an Active/Active Load Balanced and High Available (If one of the nodes is down the system still runs) MySQL cluster. I have found quite a few howto's but I have some things unclear in my mind. I found a few solutions like this one: [URL] or this: [URK] Those are using two or four MySQL nodes, two Load Balancers to avoid a single point of failure but only one MySQL cluster management server. What happens if the MySQL cluster management fails?

I have also found a "MySQL Master-Master Circular Replication" technique but from what I read, with this option there is a chance that conflicts will arise if node A and node B both insert an auto-incrementing key on the same table.

View 1 Replies View Related

General :: Get The Wicd Daemon To Disconnect Wireless Network From The Command Line?

Mar 14, 2011

I'm thrilled using wicd to connect to wireless networks. But when I suspend my laptop using the special keys, I just want to disconnect from wireless without having to use any kind of GUI or curses user interface. It says in the documentation that wicd works by sending DBUS messages, so presumably it's possible to write a command that talks to the daemon directly.But I can't figure out how.Does anybody know by means of what shell command I can tell the wicd daemon to disconnect me from my wireless network?

View 2 Replies View Related

General :: No Network Packets Sent Immediately After Quick Physical Disconnect And Reconnect?

Mar 9, 2011

I am using tcp for data transmission between 2pcs running linux.During transmission, I have noticed that if I unplug the network cable and reinsert it quickly,connection is not lost(same as i expect)and the sender start to resend the packet after 5s(what i expect is that network packets sent immediately after quick physical disconnect and reconnect).My question is can i reduce 5s to 0s(resend immediately after network cable reconnect)?Any parameters(tcp rto,txqueuelength,..) can be modified to achieve this condition?

View 10 Replies View Related

General :: SSH X Tunnel Via Non-X Server

Jul 7, 2010

I'm working remotely at the minute, but have several 'incoming' automatic reverse shells connecting to a dedicated server. This dedicated server does not have X, but several of the 'incoming' shell servers do. Basically, take three machines, laptop, server, client. Laptop and client have X, server does not. All three machines have password-less logins to each other (laptop > server, server > client) and can password-lessly establish a shell.

I've tried ssh -X user@server "ssh -X user@client gui-application" and, no suprise, I'm getting 'Cannot open Display" messages. Does anyone know I nice one-liner for this kind of tunnelling?

View 3 Replies View Related

General :: Bash - Shell Utils: Convert A List Of Hex To List Of Decimals?

Dec 27, 2010

How can I convert a file with a lot hex numbers into the decimal?

Example: file1
0x59999
0x5acdc
0xffeff

I want to start $ cat file1 | util | cat >file2 and get file2 with smth like

[Code]...

View 3 Replies View Related

General :: Setup VPN Tunnel With OpenVPN

Jan 31, 2010

I need to know the procedure to setup VPN between two network. i setup openvpn access server to do this easy. 1. Step by step procedure to setup VPN 2. Setup VPN with DHCP 3. How to check that open vpn is running successfully.

View 1 Replies View Related

General :: Ssh Tunnel Username With Restrictions?

Mar 25, 2011

i have jsut setup a kvm virtual machine on my server. to connect to the VM from outside of the network i use ssh tunneling. what i would liek to know is if there is any way to create a new user with jsut ssh access. i dont want people to be able to edit files in ~/ or such. jsut need the user to estabilish the connection to the server

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved