General :: Interactive Ssh Session Through Gateway Machine

Sep 6, 2010

Possible Duplicate:Forward SSH traffic through a middle machine.I am looking to get an interactive ssh session on a remote machine, but must login via a gateway.For example, right now I do the following:

@local % ssh <user>@<gateway>
@gateway % ssh <user>@<remote>

Is it possible to achieve the same thing in a single command from my local machine? I have tried:

@local % ssh <user>@<gateway> 'ssh <user>@<remote>`

From the output i am indeed able to login, but do not get an interactive session. I took inspiration for this attempt from using ssh to run a command remotely.

View 1 Replies


ADVERTISEMENT

Ubuntu Networking :: Entering Interactive Session SSH Hang

Apr 17, 2010

I am experiencing a 5-10 minute delay when trying to ssh into my ubuntu server.

root@localhost's password:
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session. HANG

I've tried using the option UseDNS No in my my sshd_Config but to no success. I've tried reinstalling ubuntu fresh, but still it hangs upon trying to ssh from any machine. I am running Ubuntu 9.10 server.

View 7 Replies View Related

Programming :: Write A Perl Script Which Will Give An Interactive Session To A User To Execute Command On The Server

Feb 25, 2011

I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :

Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '192.168.1.1';
my $username = 'user';
my $login_passwd = 'test123';

[Code]...

View 2 Replies View Related

General :: Display The Source Machine During A Remote X Session In The Title Bar?

Aug 8, 2011

In the past, when I open a gvim session on a remote machine, the title bar of gvim would show the machine name in brackets. I am not sure if this was done by the remote gvim itself, or the local window manager. In the past I have used gnome2, although I am currently using unity (and finding it rather frustrating). Is there some setting I can change to always force remote windows to display the source machine?

View 1 Replies View Related

General :: Open A Second Shell Session That Will Remember The User, Machine, And Directory

Sep 21, 2010

I'm ssh'ed into a machine and logged in as a different user. Is it possible to open a few new windows that will still be ssh'ed into that same machine, still logged in as that user?

View 2 Replies View Related

Security :: Logwatch Reported Possible Exploits On Gateway Machine?

Mar 15, 2011

I have set logwatch to report daily the logs, somehow since last week i get below message. A total of 1 possible successful probes were detected (the following URLs contain strings that match one or more of a listing of strings that indicate a possible exploit):

/cgi-bin/blocked.cgi?clientaddr=192.168.1.108&clientname=&clientident=&clientgroup=limitedaccess&targetclass= untrusted&url=http://adfarm.mediaplex.com/ad/fm/9608-84171-8772-2?

[code]...

View 7 Replies View Related

Ubuntu :: Python Interactive Session: "help()", Then "modules" Freezes Python?

Jan 12, 2011

This problem has to do with Python's interactive help (To get to the interactive help, just type help() at any interactive session). I like to browse all my installed Python modules, to see if I can find something that would be useful for my hobby programming projects. However, recently, typing modules (which is the command to list all installed modules) freezes the interactive session.

View 1 Replies View Related

OpenSUSE :: Failed To Open A Session For The Virtual Machine Windows XP?

Sep 14, 2010

I have installed virtualbox on opensuse 11.2 64bit.

When I go to open a machine it says

"Failed to open a session for the virtual machine Windows XP. The virtual machine 'Windows XP' has terminated unexpectedly during startup with exit code 1."

"
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:

[Code].....

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary."

View 9 Replies View Related

Applications :: VirtualBox - Failed To Open A Session For The Virtual Machine

Apr 8, 2010

I'am using gentoo linux. After some system's updates VirtualBox stoped loading any virtual machine with error:

Code: Failed to open a session for the virtual machine. Virtual machine has terminated unexpectedly during startup.

Details:
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {99404f50-dd10-40d3-889b-dd2f79f1e95e} Kernel log

Code:

So, i've rebuilded all VirtualBox dependencies with safe flags, then i've recompiled most of the sys-* packages also with safe flags. However VirtualBox still doesn't work.

UPD: virtualbox-bin-3.1.4

UPD2: 3.1.6 and ose-versions crashes with same errors

View 2 Replies View Related

Software :: Remote X Over SSH / Gnome Session Running On The Client Machine?

Oct 15, 2010

Running Ubuntu 10.04 to 10.04 over LAN; I can SSH -X into my server just fine, and am able to launch various applications (Nautilus, Gnome-Terminal, Disk Utility, etc) but I'd really like a Gnome desktop. When I've tried the various StartX commands and gnome-session, but something just isn't clicking. Is there a way to have a 'second' Gnome session running on the client over the first?

To pre-empt some obvious solutions; I don't wish to use VNC, the lag drives me nuts, and I'd like to keep my gnome session running on the client machine if possible. If it's not possible, that's fine; it just seems like there'd be a way to do it?

View 1 Replies View Related

Fedora :: Virtualbox Error 'Failed To Open Session For Virtual Machine Windows 7'

Jun 6, 2011

When i try to create a virtual machine using the Windows 7 Enterprise Evaluation iso file, everything goes as planned untill i click on the start button. when i click on it i get two error messages. the first: Failed to open a session for the virtual machine Windows 7. The virtual machine 'Windows 7' has terminated unexpectedly during startup with exit code 1. Kernel driver not installed (rc=-1908). The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary. i have installed the DKMS package, but when i try to run the command stated in the error message, i get another error message in the terminal:

[code]...

i have to install the driver that is specified (vboxdrv) but i do not know where to find it.

View 3 Replies View Related

Programming :: How To Turn Non-interactive Shell Into Interactive Shell?

Feb 4, 2011

I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.

Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.

View 2 Replies View Related

General :: Non-interactive Way To Set A Password?

Aug 11, 2010

Is there a non-interactive way to change a user's passwd short of using expect? I'm using Debian.If not, then I guess I need to get this expect script working:

Code:
#!/usr/local/bin/expect -f
set username $env(UNAME)

[code]...

View 2 Replies View Related

General :: Making Sh Shell Interactive?

Mar 24, 2011

how can I make my sh interactive by default. That I don't have to always type --interactive everytime I log in. I want it to be always interactive. #2- how also do I turn of --posix mode parmanently ? Is there a line I need to drop somewhere or what do i do.

View 4 Replies View Related

General :: Re-enter Interactive Mode After Ctrl-z?

Jun 14, 2011

In interactive mode (in Octave, gnuplot, R, etc.) I occasionally press Control + z by mistake. This pauses the program and kicks me back to the terminal.Is it possible to re-enter the original interactive mode (with all the stored variables)?

To reproduce:

~> octave
octave:1> a = [1:10];
octave:2> ^Z

[code].....

How can I recover my session with the variable a defined?

View 2 Replies View Related

General :: Disabling Interactive Boot In Red Hat / CentOS

Feb 12, 2010

How can I disable the interactive boot up process? Also what is the pros and cons to doing this? Will this affect my being able to get to runlevel 1?

I have been googling it but not really clear on the pros/cons etc.

I am talking about a server class machine that is in a locked room, not a desktop.

I know it can be turned off in /etc/sysconfig/init # Set to anything other than 'no' to allow hotkey interactive startup... PROMPT=yes

View 4 Replies View Related

General :: Assigning A User A Non-interactive Login?

Apr 16, 2010

I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?

View 2 Replies View Related

General :: Is There Interactive Firewall For Outbound Traffic On Ubuntu?

Aug 24, 2010

I wish to prevent some programs from "phoning home", and to allow other programs to access only specific web servers.Is there any way to interactively allow or decline outbound communication from individual programs on Ubuntu?

View 4 Replies View Related

General :: Rm Non-interactive Command - Delete A Directory With Its Files

Sep 28, 2010

I wanna delete a directory with its files and I wanna do that as follows: rm -r dirToDelete Unfortunately, I always get asked for EACH single file if I wanna delete this because it is write protected.... Is there a way to suppress this feedback message so that just the whole directory with its contents disappears?

View 5 Replies View Related

General :: Differences In Output Between Top In Batch And Interactive Mode?

Jul 13, 2010

I am trying to figure out why top run in batch mode outputs so many more lines than when run in interactive mode. For example:

[Code]...

View 2 Replies View Related

General :: How Can Interactive Login Environment Be Duplicated In Cron

May 24, 2010

My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh

View 1 Replies View Related

General :: Interactive Bash Script To Ask For Superuser Password?

Jan 10, 2011

This is an old question asked many times, which, however, is NEVER answered directly in any manual I've checked. So...I'm writing a bash install script (instead of a rpm or .deb package) that must be run by a normal user. change to superuser (asking for password and receiving it) and the rest of the script to be executed in the superuser mode in order to install what I mean to install.I know how `sudo ...` or `su `root"..."` or `gnome-terminal -e ...` can achieve this purpose by creating certain batch files and then give them as argument to these commands. That's NOT what I'm asking, however.I want to know how I can make the script interactively switch to superuser mode and go on running the rest of the script (can be a lot of code) in that mode. I don't mind if it oens a separate terminal window to do that; just how can that be achieved?

View 8 Replies View Related

General :: Feeding Input To Interactive Programs In Bash?

Aug 30, 2010

If I have an interactive program, e.g top, which, after launch, can be fed with key strokes and changes its behavior, for example, after launching top and then pressing "1", you can see the CPU utilization per core. I was wondering if there is a programmatical way to do so, so I don't have to press "1" every time. I would think it is an easy task, but so far my attempts have failed.

View 4 Replies View Related

General :: Write A Log File Of A User Interactive Process Using Tee ?

Sep 30, 2010

I want to write the sequence of operation of a user interactive process (Question asked by the process and answers user entered) in to a log file.

I used tee command, Precess1 | tee -a FileName

This write only the Question asked by the process. Does anybody know how to write the user inputs also to the same file, synchronized?

View 2 Replies View Related

General :: SSH - Permission Denied (publickey,keyboard-interactive)?

May 11, 2010

I have OpenSSH_5.5p1 on my Fedora 10.I generated a key pairs using ssh-keygen and added the pub key to the remote machine that I wanted to connect. When I try to sshing, I am getting : Permission denied (publickey,keyboard-interactive).When I try to connect to the machine itself also getting the same error.

sshd_conf :
Protocol 2
HostKey /etc/ssh/ssh_host_dsa_key

[code]....

View 3 Replies View Related

General :: Port Scanning Attack Displayed At Interactive Firewall

May 17, 2011

Got 3 computers connected by ethernet to a router modem. At this router modem only port 80 is forwarded to a web server (one of the 3 computers). Now I realized several times a port scanning attack displayed at interactive firewall of Webserver ( Apache at Mandriva LINUX ). Actually the message is port scanning attempt of heanet (actually this names are different mostly). I wonder how to figure out is this portscanning attack possible through port 80 or is the modemrouter (Draytek VIGOR) misconfigured, compromised or one of the other 2 machines (Windows) are compromised and attacking the server inside intranet?

View 2 Replies View Related

General :: Fedora 12 After Upgrade - When Start Interactive Boot It Hangs After Trying To Run The Service Local

May 19, 2010

Recently i've upgraded my fedora 11 to 12 using the preupgrade command and now I have a problem booting! when i start the interactive boot it hangs after trying to run the service local, it looks as if its trying to boot because the cursor blinks really fast then blinks normally after a few seconds. no error was stated during the event. what seems to be the problem here?

View 3 Replies View Related

General :: Session Timeout - What Is Considered A Idle "session" ?

May 11, 2010

Info about session timeout.

I use tmout = 15 min in my /etc/profile (along with readonly tmout). i have some issues i need to address, looking for ideas.

1. what is considered a idle "session" ?

2. if i & a process to the background and do nothing is this a idle session?

3. if user uses su to a higher level, are there now two sessions? is the tmout for user suspended until su user time outs or leaves su session?

4. i have some users who will run long sql queries. is there a workaround to have the session remain active until process has finished?

View 3 Replies View Related

Ubuntu :: Setup A Putty Session To Putty From One Machine To Another?

May 15, 2010

I am trying to setup a putty session to putty from one Ubuntu machine to another. I know how to setup to connect to the machine from Windows and I am using the same settings for the one I am trying on the Ubuntu machine but it fails to connect. It fails immediately so I believe that putty is not able to find ssh. Is there some configuring that I need to do.

View 7 Replies View Related

General :: Transfer Files On A Machine With Ftp / Sftp And Scp Disabled Onto A Remote Machine?

Nov 30, 2010

How do you transfer files on a Linux machine with ftp,sftp and scp disabled onto a remote machine

View 2 Replies View Related







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