Ubuntu :: Ssh And Run Command On Remote Machine?

Jan 8, 2010

I have made a shortcut on desktop and want that one to ssh from machineA to machineB and run a command.I have fixed the .pub file so I can ssh without password.This is what I want to doPHP Code:ssh -X user@machineB && start-the-program ..but it seems to not run the command after "&&".How can I do to make it automaticly run a command after it has connected over ssh?

View 5 Replies


ADVERTISEMENT

General :: Run A Remote Command On A Windows XP Machine?

Jun 24, 2011

I'm using Ubuntu 11.04. I have a Windows XP box in which I've installed SFU 3.5 and Interix (Subsystem for Unix-based Applications). I want to run a batch script on the Windows machine from my Linux box, whether on-demand or in a cron. How do I do this from the Linux side?

View 4 Replies View Related

Software :: Executing The Command On The Remote Machine

Oct 5, 2010

If I type this manually on the command line, it works

Quote:

ssh -Y user@machine 'firefox &'

I ssh into the remote machine as the named user and pop an instance of firefox from that machine back to my own. If I put the same thing into a shell script though, it fails.

Quote:

#!/bin/bash
ssh -Y user@machine 'firefox &'

I'm just left sitting at a command line on the remote machine. Why does the script fail and how can I make it work?

View 4 Replies View Related

General :: Use Ssh And Run Command In The Remote Machine Using Shell Script?

Apr 27, 2011

How can i do that.. Today is my first day writing a script.. and correct me if this Thread should be somewhere else..

Code:

if [ $1=$anyvariable ]; then
ssh www.a.com <Have to set few variables and give commands >

View 8 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

Software :: Put Ssh Into Remote Machine - Error Write Failed: Broken Pipe (After Logged Into That Machine)

Jul 18, 2011

Whenever I put ssh into remote machine am getting the following messages. Write Failed: Broken Pipe (After logged into that machine ) Read Socket Failed: Connection reset by peer (While trying to log in ) Also known_hosts file is changed frequently.

View 1 Replies View Related

Software :: Redirecting Remote Machine Audio To Local Machine?

Dec 26, 2009

Is there any way to redirect a remote Linux machine mplayer output audio to local one?

View 2 Replies View Related

Ubuntu :: Control TTY On Remote Machine Via SSH

Jun 19, 2011

I'm wondering if it's possible to control a TTY on a remote machine via SSH. I'm aware of ssh's -t option, but it doesn't seem to do what I want. Basically, I'm thinking in terms of VNC-like operation, where the remote user and local user see the same thing, only instead of a GUI, they both see TTY1 (or 2, or etc). Is that doable, or no?

View 3 Replies View Related

Ubuntu :: SSH Display On Remote Machine?

Jul 10, 2011

I have SSH -X working fine, displaying stuff that's running on the remote machine on my local machine. But how do I display on the remote machine? I did this many years ago on unix and seem to recall that this was either default or a simple case of setting DISPLAY....

View 3 Replies View Related

General :: Remote Command Execution Via SSH And Newgrp Command?

May 9, 2011

Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.

So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:

Code:

user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else

[code]....

View 4 Replies View Related

Ubuntu Networking :: Ssh Back From A Remote Machine?

Nov 19, 2010

I can ssh from my local machine (Ubuntu 10.4 64bit) to a remote Linux server. When I try to copy a file back to my machine (or just ssh to my machine) I get the following error - "port 22: No route to host".ifconfig on my local machine gives one ip address for "lo Link encap:Local Loopback" and one for "wlan0 Link encap:Ethernet"; I tried ssh both.I work on a laptop with a wireless router (which is also the modem)

View 6 Replies View Related

Ubuntu :: Remote Machine Should Be Third Monitor In Xrandr?

Jan 10, 2011

I ran the following commands on my ubuntu desktop :

xrandr --output VGA-0 --mode 1680x1050
xrandr --output VGA-1 --mode 1680x1050
xrandr --output VGA-1 --left-of VGA-0

This gives me dual head. I have a second machine on the same 100mbps network that is also running Ubuntu. I want to run X on that machine and have it's X session as a monitor in xrandr, so I would add something like this :xrandr --output REMOTE-1 --right-of VGA-1Is this possible?

View 1 Replies View Related

Ubuntu Servers :: Cannot Shut Down Remote Machine / Server?

Mar 21, 2010

I am running a local webserver mainly for development. I have everything set up. The issue I currently have is that I cannot shut down the machine from the command line. I can issue the command but the machine remains on. I also cannot get to the desktop via VNC.The reason for this, is that there is no monitor attached so Ubuntu says that it is trying to run in Low Graphics Mode. I found this out as I plugged the monitor in to my server.So question is, how do I get around this? How can I set up Ubuntu to get past this, or do I need to install Ubuntu Server?

View 3 Replies View Related

Ubuntu :: Lucid - Cannot Display Xclock On Remote Machine

Jul 23, 2010

I'm having trouble displaying Xwindows programs on a remote machine. If I run "ssh -X newmachine" and I login and then run a program like xclock, I get the error message:
Error: Can't open display: localhost:10.0

If I run the same command to an anothermachine which is running Ubuntu 8.04 it works fine and xclock displays on my localmachine. If I run the command "echo $DISPLAY" on newmachine, I see:
localhost:10.0

Also, I have checked and xauth is installed on newmachine. What setting I have to change on Ubuntu 10.04 to allow remote display of Xwindows programs?

View 4 Replies View Related

Ubuntu Servers :: Add A Printer On Remote Windows Machine?

Sep 12, 2010

I set up a print server with a USB printer attached. I can remotely bring up CUPS and print a test page, but I would like to be able to add a printer in windows like I normally would. Add printer, network work printer and so on, but I am not sure how to implement this on Ubuntu server. Do I need to use IPP or do I have to share it out using Samba? Oh, my server does not have a graphical desktop, it is strictly console based.

View 1 Replies View Related

Ubuntu :: Setting Up Remote Administration On A Distant Machine?

Oct 30, 2010

I'm try to assess the viability of of setting up remote administration on a distant machine. Just for background, the computer I wish to administer is located on a boat in Southern Ireland while I'm in SE England. Sadly, the the boat operator is a far better fisherman than computer user and every now and then some rogue sensor numbers get captured by the boat's computer and these eventually need operator intervention. Anyone who has tried to talk a non PC literate user through correction routines over a dodgy mobile telephone while the said user is trying to operate mouse/keyboard in an Atlantic swell will appreciate the problem.

However, there is a fairly good mobile phone broadband signal available in the area so I was wondering if there was anyway I could set up a point to point connection with the boat over this medium. That would allow me to administer the machine remotely.

View 2 Replies View Related

Ubuntu :: Emacs In Remote Machine In Term Mode?

Jun 15, 2011

I ssh connect with a remote machine and have to use emacs.But emacs run only in term-mode. does anyone have a solution how can i run emacs in graph mode in the remote machine

View 1 Replies View Related

General :: How To Remote Shutdown A Win XP Machine

Feb 10, 2010

ow do you remotely shutdown an XP host from a linux machine? I know that you can use shutdown /s /f /m IP_GOES_HEREFrom windows, but how would you do that from linux? (wine does not port the shutdown command)

View 4 Replies View Related

General :: Ssh - Remote Desktop Into A Machine?

Mar 19, 2010

I have a VPS by my host running on a linux server, and they have given me SSH access. Is it possible to remote desktop into the server, like you can on Windows, so that I can physcially click on things rather than having to use SSH commands?

Surely this must be running on Fedora or Ubuntu etc. so there is some type of OS. You would probably have to install something on the servers end I suppose but just want to know if its possible and what the options are.

View 3 Replies View Related

General :: Can't Ssh Remote To Fedora 14 Machine?

Feb 28, 2011

I have looked for clues in the sshd.conf etc. But I can't really find anything that give me a hint of why fedora 14 keeps blocking my access.I get all the way into the ssh interface.

login as: xxxxx
xxxxx@xx.xx.85.216's password:
Access denied
xxxxx@xx.xx.85.216's password:
Access denied
xxxxx@xx.xx.85.216's password:

So it's not a firewall problem and the port forwarding is working fine. I am using putty to access the machine remote.Anyone have any ideas of what I need to set in ssh or sshd.conf. I am expecting to login with password not with keys.

View 3 Replies View Related

General :: Find The Remote Machine Name?

Aug 14, 2009

I want to access the remote machine I already login, but I forget the machines name, how can I find the machine name then?

View 3 Replies View Related

General :: Make A Remote Access From A Ubuntu To A Windows 7 Machine Using RDP?

Aug 11, 2011

There is a way to make a remote access from a Ubuntu Linux to a Windows 7 machine using RDP(Remote Desktop Protocol)? I use "mstsc.exe" for Windows to Windows connections. What is like "mstsc.exe" that I can easily run from Ubuntu?

View 1 Replies View Related

Ubuntu Servers :: SSH Server Connection OK For Local But Not For Remote Machine

Aug 14, 2010

I am having trouble to make my SSH server working with remote machine.

Code:
telnet 192.168.1.102 22

PHP Code:

[Code].....

View 9 Replies View Related

Ubuntu :: Use Ddrescue To Clone A Dying Disk To A Remote Machine Using Ssh?

Sep 16, 2010

im trying to use ddrescue to clone a dying disk to a remote machine using ssh. this is my command:

Quote:

sudo ddrescue --block-size=4KiB /dev/sda1 - | ssh user@address 'cat /data/backup.img'

it returns the error "cat: can't open '/data/backup.img': No such file or directory"

View 3 Replies View Related

Ubuntu Networking :: Redirect Port 25 To A Remote Machine Via A VPN Connection

Feb 19, 2011

I have had a look at the the information on the ubuntu forum about this but am having trouble getting the server to do what i want it to do.

I have a VPS running ubuntu 9.10 and i am trying to set it up to redirect port 25 to a remote machine via a VPN connection (remote machine connected via VPN)

i have tried setting this up in the firewall using webmin but it is not working.

View 3 Replies View Related

Debian Configuration :: Cannot Remote Desktop To Machine?

Dec 16, 2010

I cannot remote desktop to the Debian machine from anywhere,hether within the same network, or on a different network elsewhere. Also, the personal wiki I set up on it to be viewed via a normal web browser cannot be accessed, either. Both time out when attempting to connect to them. I can still ping the Debian machine when on the same network, though.

This started some time ago when we had a failure occur on our main server.had to powercycle everything in order to restore things back to normal, the Debian machine included. Since that time, this problem started to occur. This is a major thorn in my side in attempting to prepare for our website to move,I've been unable to figure out how to fix it.Originally, I thought it would be something in between the Debian machine and anything else, which would mean something like our firewall box or our hardware switch was the problem. But the tech support people who maintain those for us confirm that there is nothing wrong with them, so now I'm not certain anymore.

View 14 Replies View Related

Fedora :: Connect To Remote Machine Via Terminal

May 19, 2010

I just started to run Fedora/Linux on my laptop... I was using XP and using putty to connect to Linux servers at work. I am assuming I can use the terminal editor supplied with Fedora to connect to remote linux server? Can I uses the terminal to connect to remote linux server? How do accomplish this?

View 6 Replies View Related

OpenSUSE Network :: Remote Turn On Machine

Jan 8, 2010

I have had a notebook with an ethernet plugged in cable before, sent a signal through the cable by resetting my router, and it switched my notebook on from cold. My question is, is there a way of doing this using a remote desktop client. Ideally, I would like a machine switched off at home running suse linux/windows, then have a client computer sent the remote request, this in turn activates the machine, which boots and then gives the rmote client control.

View 4 Replies View Related

OpenSUSE Network :: Connect To A Remote Machine Outside LAN?

Mar 30, 2010

regarding a remote connection from my workplace to my home system. On my home a have a connection to the ISP and the provider is allocating a dynamic IP to my router. How can I connect from my work computer to the home computer? There are other application or other stuff for making this possible?

View 5 Replies View Related

General :: Installing CentOS On Remote Machine?

Apr 15, 2010

Can I do a fresh install of CentOS Linux on a remote machine? I have a machine with Windows NT in a remote location. Now I want to use that system as my deployment machine. To proceed with my plan I need to install a Linux OS (have chosen CentOS). The guy there with the machine is not very knowledgeable of the installation process of any OS. So I thought I could install CentOS remotely.how I can achieve this?

View 2 Replies View Related







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