Ubuntu :: Ssh Commands Execute Locally Instead Of On The Remote Computer?

Jul 12, 2010

I can ssh to the remote computer OK, but the commands execute on the local machine, not the remote machine as they should. After much frustration I did the following hoping to clear the problem. I turned off all machines on my LAN, the hub and the router. I then rebooted everything in the reverse sequence - cable modem, router, hub, and then the computers.Then I reinstalled ssh on both machines.

sudo apt-get purge openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
sshd in now running and port 22 shows on both machines. However the problem persists.

View 5 Replies


ADVERTISEMENT

General :: Execute Commands After Logging In Into The Ssh Connection Not Locally?

Oct 20, 2010

I am creating this script which will login to a server with ssh and check if a particular exists there, if not it will create the user.This is the script:Quote:

ssh 192.168.100.5
cat /etc/passwd|grep -i $1 > /dev/null
if [ $? -eq 0 ];

[code]...

View 9 Replies View Related

Software :: Using Expect To Execute Remote Commands?

Dec 21, 2010

I'm trying to get Expect to execute commands on a remote server using SSH with username/password authenticationMy current expect script is

Code:
#!/usr/bin/expect -f
spawn ssh -tq root@my_hostname "whoami"

[code]...

View 2 Replies View Related

Software :: Execute Script To Run Commands On Remote Server

Jan 1, 2010

I have an immutable script on server A, it executes a maintenance command on the remote servers where elevated privileges are needed. I want the developers on server A to execute the script and run it without being prompted for a password. The script contains scp root@serverB and ssh 'root@serverB', if run as root it runs great since I am using ssh keys. However, as regular users they are prompted for a password. If I do created their group on server B...etc and give the group sudo it would still ask for passwords right? Can I overcome this?

View 1 Replies View Related

General :: Type And Execute Commands In Window From Computer

May 19, 2010

ssh to a machine on my network open up a terminal (gnome, xterm, whatever) and have it visible on that machines display be able to type and execute commands in that window, from my computer. i have kind of achieved this. on machine A, i ssh to machine B. on machine B, i open up a terminal and execute screen, C-a :multiuser on. on machine A, i execute screen -x and connect to the term on B. everything i type from A or B can be seen. i just want to be able to set this up without having to physically be at machine B. does that make sense?

View 7 Replies View Related

Ubuntu :: Run A Program Installed On A Remote PC Locally?

Feb 11, 2010

Is it possible to run a program installed on a remote Ubuntu PC on the local PC? What I'm talking about is different from simply sending the GUI over the network (like X tunelling). I want the program to use the processor of the local machine. Is this possible?
(Here's an example. PC 1 has a fast processor. PC2 has gimp installed on it but has a slow processor. Can PC2 make GIMP run on PC1's processor over the network?)

View 9 Replies View Related

Ubuntu Networking :: Mount A Remote (ftp/ssh) Directory Locally

Jan 15, 2010

If you use Nautilus then you can just use the "Connect to server" from the file menu. However if you file manager does not support connecting to servers (like Thunar ) then you can use sshfs.

Code:
sudo apt-get install sshfs
You should create a directory as your mount point, say
Code:
mkdir /media/Server

[Code]....

View 1 Replies View Related

General :: Mount Remote Devices Locally?

Jan 22, 2011

I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?

View 1 Replies View Related

SUSE :: Remote Authentication Suse10SP2 - Not Doing Locally

Nov 3, 2010

In my job we have 48 machines with Suse10 SP2 and they want all the machines to be able to authenticate to a unique server (something like a Radius Server or TACACS server), not doing the authentication locally. Do you have any idea on what to use and what needs to be change in the Suse Linux password auth for a remote server to be the auth server?

View 1 Replies View Related

General :: Capturing Remote Output Locally In Mac Terminal?

Jun 2, 2011

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).

Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.

View 2 Replies View Related

Networking :: How To Redirect Locally-generated Packets To Remote Server?

Mar 22, 2010

I'm trying to workaround a limitation in a server application. The limitation is that I can only connect to a LOCAL mysql database. I am trying to fool the server in to using a remote mysql database. I was hoping to do this by simply forwarding 3306 to another server on the same subnet.To that end I've set up iptables rules to forward all connections to port 3306 to a non-standard mysql port on a remote server. This works, except that I need to deal with the loopback interface in a special way and I'm stuck.

View 14 Replies View Related

Ubuntu :: Execute Other Commands In A Row In That Same Newshell

Nov 13, 2010

I have a script --> WEP.sh and i want to open severel new processes in a second shell.

gnome-terminal -e "airmon-ng check" #this is working... but is there any possibility to execute other commands in a row in that same newshell for example airmon-ng stop wlan1 or sleep 10 or echo....?

View 2 Replies View Related

General :: Execute Different Commands With Same Name?

May 14, 2010

I have a two seperate files on my computer,

which execfile
/usr/local/bin/
/usr/bin/

so, i have two files with the same name in two different directories. How can I specify exactly which command to run?

View 6 Replies View Related

Ubuntu :: Screen Wont Execute Commands?

Jan 13, 2011

Cant type anything when i attach to my screen by typing screen -r. It doesn't even say neokyle@server, the only thing i can get it to let me do is detach. I cant even kill it.

View 2 Replies View Related

Fedora :: How To Execute Commands On Startup

Aug 11, 2011

how to execute commands on startup. I've added lines to /etc/rc.d/rc.local, /etc/rc.local, I've put scripts (with extension .sh) into /etc/init.d/ and I've set the executable permission thing on all of them with chmod -x. I *still* can't get anything at all to execute on startup. The truth is, I'm trying to enable multitouch and button tapping automatically when I startup Fedora. I have the commands

[code]...

Which I want to execute whenever I start Fedora (it's a bit tedious to write them every time, or even to have to execute a script myself whenever I start my computer). Furthermore, if I can figure this out, then I can do all sorts of things. Does anyone have a clear, surefire way in which I can do this? I'm not good with using Linux at all

View 7 Replies View Related

General :: Execute Example.sh Files Like Other Commands?

Jun 23, 2010

I just want to know that how can I execute a example.sh (script) from command-line like other Unix commands. Please write full procedure

View 4 Replies View Related

Programming :: Execute Commands After Run Command?

Jan 13, 2011

I am executing a run command in a script after that i need to copy files into a directory which are the inputs for the run,on run a new shell is created and the remaining commands in the script does not execute,wot should i do to execute the remaining commands in the script??

View 2 Replies View Related

Programming :: Execute SQLite Db Commands From C++?

Jun 10, 2010

Anyone know how to execute SQLite db commands from C++?

View 1 Replies View Related

CentOS 5 Server :: Can't Execute Some Commands?

May 22, 2009

I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?

View 2 Replies View Related

Debian Configuration :: Configure Vino Remote Desktop To Start At Boot - Only View Remotely Once Have Logged-in Locally

Aug 9, 2010

Kernel: Linux 2.6.26-2-686 (i686)
Compiled: #1 SMP Thu Nov 25 01:53:57 UTC 2010
C Library: GNU C Library version 2.7 (stable)
Distribution: Debian GNU/Linux 5.0.8
Desktop Environment: GNOME 2.20

Gnome comes with Vino Remote Desktop as part of it's package. I want Vino to run at boot so that I can login remotely. I am using VNC-4.1.3 for remote viewing. However, I can only view remotely once I have logged-in locally.

View 9 Replies View Related

Ubuntu :: Loop Through Subfolders And Execute Commands Or Scripts?

Apr 3, 2010

Let's say I have 4 subfolders in the folder test as shown below:

drwxr-xr-x 2 muskedear muskedear 4096 2010-04-03 17:11 sub001_p1
drwxr-xr-x 2 muskedear muskedear 4096 2010-04-03 15:38 sub002_p1
drwxr-xr-x 2 muskedear muskedear 4096 2010-04-03 15:38 sub001_p2
drwxr-xr-x 2 muskedear muskedear 4096 2010-04-03 15:38 sub002_p2

I want to loop through the folders and check if they end with *_p1 or *p2. If a given folder ends with *p1, I want to cd to that folder and manipulate certain files in that folder. If the folder ends with *p2, I want to perform different manipulations on certain files.

View 1 Replies View Related

General :: How To Execute Multiple Commands When Using Find

Jan 22, 2011

I'm trying to run multiple commands on things I have found, how can I achieve this? find . -exec cmd1; cmd2 does not seem to work; it instead runs cmd2 after cmd1 has been executed on every file.

View 2 Replies View Related

General :: Execute Commands Over SSH In A Batch File?

Feb 17, 2011

I'm looking to, all in the course of one batch file:

ssh into a remote computer execute commands (per the batch file) on the remote host.

What options do I need to add to the ssh invocation so that the batch file executes the lines following the ssh invocation over the connection?

e.g., with sftp it's simply adding a -b /dev/stdin and then << EOF at the end; how do I do this with SSH?

View 1 Replies View Related

Debian :: Server Delay To Execute Commands?

Sep 1, 2010

I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this

View 2 Replies View Related

General :: Easier Way To Execute Long Commands?

Jul 29, 2010

I use a long mount command to mount a NAS drive but have to retype it every time I need to mount the drive. Because it is on my laptop I only need to mount the drive from time

View 4 Replies View Related

General :: How To Allow User To Execute All Commands Without Sudo

Apr 30, 2010

Customer asked me to create a menu for linux he also asked me to do this: Open like a command like where a user can execute commands...so for this the users have sudo enabled. The code below works OK. But it has an issue when a command is executed but the command does not need sudo

Like for instance
Code:
cd /
sudo: cd: command not found

How can I allow a user to execute all commands when a command does not need sudo
Code:
echo -e "Press Control+C to finish"
#echo -e " "
while true;
do
read whichcmd?"Insert Command: "
sudo $whichcmd
done

View 3 Replies View Related

Software :: Execute Commands Via Ssh / Working And Failing

Apr 9, 2009

I am trying to get F10 installed on L2 so that I can use the system the same way that I have been using L1 with F8. Specifically, I am using unison (with ssh) to crossload files between the desktop and the laptop. Unison works just fine when executed on the desktop crossloading to the F8 Laptop1. But when trying to do the same on L2, it hangs while trying to contact the server.Attempting to diagnose the problem has led me to ssh.I can use ssh to login to any of my systems from the desktop. E.g.,ssh delta

but attempting to execute a command via ssh simply hangs. E.g.,ssh delta "echo $PATH"

Both ssh login and ssh remote execution work fine when done to the F8 laptop 1.

I have installed tcsh on all systems and my login shell is csh (i.e., tcsh) on all machines.I have spent the better part of the last two days trying to find something but have failed. As far as I can tell, both L1 and L2 are configured identically:
firewall disabled
selinux disabled
and while I have not done a character-by-character comparison of the ssh and sshd configuration files, they appear (visually) to be the same, as shipped with the Fedora distribution.

I need some pointers on where to look for problems, etc.

View 5 Replies View Related

CentOS 5 :: Where To Put Commands To Execute Just Before Shutdown / Logoff?

Mar 3, 2010

Where can I put commands which should be executed just before

- logoff

- shutdown

I think there must be somewhere an opposite script to

.initrc
or
.bashrc

View 5 Replies View Related

Fedora Networking :: Cannot Move The Mouse, Execute Any Commands?

Oct 17, 2009

I just finished installing Fedora 11 on a Dell Inspiron 6000. After some tinkering, I was able to get the Broadcom 4318 wireless card to start working. After a restart, I booted into Fedora and attempted to connect to my wireless network.Five seconds later Fedora freezes. I cannot move the mouse, execute any commands (except hold the power button down), or access any log files. The only confirmation I get is that my router does receive a signal from the wireless card, shortly before dying.

View 1 Replies View Related

Programming :: Execute Clia Commands At CLI Prompt Through Script?

Feb 18, 2011

I have a requirement to execute a series of cli commands and to show the outputs. The problem is with the below script I could able to log in to cli prompt and bring CLI prompt but after that cli commands have just get printed at the cli prompt for e.g. board 2, it never gets executed and terminates the script.

FYI : I am unable to post the script as getting You are only allowed to post URLs to other sites after you have made 15 posts or more. error. I need for throwing some commands at a prompt like ftp prompt through script.

View 2 Replies View Related







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