General :: How To Connect To A Remote Server And Run Some Code On That Particular Server
Jun 30, 2011
I am implementing an automated backup scheme so I created a shell script which first creates SQL dumps for all MySQL databases, then retrieves all websites from the /var/www directory of a remote server. The latter is working as I am using rsync to get the remote files.However, the MySQL dumps being retrieved are the ones from the local server which is not what I want. I want to get the SQL dumps from the remote server as well.I have a tunnel between the local and remote server which I can connect to without using any password (I added the public key to the authorized_hosts), so I tried to add the following code to the script:
ssh user@192.168.x.xxx
I then attempted to retrieve the SQL dumps and exited from the remote server. However this does not work as I still have to enter exit manually in the terminal for the SQL dumps to be retrieved from the remote host. I don't know why this is happening. This is what the script is trying to do:
//connect to remote server
ssh user@192.168.x.xxx
//retrieve SQL dumps
[code]...
Is there a way to connect to the remote host AND run the script's code on THAT remote host?
View 2 Replies
ADVERTISEMENT
Jul 31, 2010
When I'm logged on to another host (e.g via ssh), how do I connect to the XServer of that machine (same user is logged in and is running a desktop (gnome))?
You may ask way I wish to do that: There are commands that don't open an X-Window, e.g. xinput, xhost, etc.. and there are situations where you want to run them from remote.
View 3 Replies
View Related
May 14, 2010
I would like to connect to a separate mysql server, yet I can't find any documentation on how to do this.How would one achieve this? I am running qmail on centos4.
View 3 Replies
View Related
Mar 16, 2011
I have a server which I need to connect to and run a graphical program on. I know that you can do this with Open Text Exceed, but it's been years since I've done this and the last time I did it was on version 9. Unfortunately I only have a license for version 14 now and have no idea how to do this. how I can use Exceed to connect to my linux server?
View 1 Replies
View Related
Sep 14, 2011
I have installed CENTOS 5.0 .. IM new to this centos linux..
-->regarding the remote connection
how can i connect the server through remote from windows 7 ..graphical interface ?
how to install lamp or apache , php , mysql
can u guys provide me any link or book for as a beginner for centos ?.
View 3 Replies
View Related
Jan 15, 2011
When I try to connect to my SUSE server from other one this appears: Remote host identification has changed. I deleted entry in know_hosts but it still working wrong, showing me this message. What could be the cause of this problem??
View 1 Replies
View Related
May 11, 2010
I am not able to connect to the Remote VNC Server..Error: ConnectToTcpAddr: connect: Connection refused.
View 6 Replies
View Related
Jul 27, 2009
I install one server in my system(linux 5.0) and accessing that server through the 127.0.0.1 private ip address(lo). While i connect to a remote server for validating registry it gives me the error and unable to connect to remote server. here some of the files i give here in below to know my system network configuration
/etc/hosts
------------
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
127.0.0.1 cp.softidsolutions.org
[code]....
View 5 Replies
View Related
Jun 4, 2011
I installed dovecot on my server and now the imap and pop3 ports are open.But when I want to telnet it, it's not possible.Code: Trying 127.0.0.1...telnet: Unable to connect to remote host: Connection timed out.Also I can't any ports else. But I can connect to it from other computers. I tried to connect to this from my PC and it was successful.
View 7 Replies
View Related
Nov 30, 2010
Locate desktop - Ubuntu 10.10 64bit
IP:123.123.123.123
Win 7 64bit - running on VM of VBox
IP:456.456.456.456
Both on Intranet. What will be an easy way to connect Win7 for admin, such as config including transfer of files between Win7 and Ubuntu 10.10 etc.
View 4 Replies
View Related
Jun 12, 2010
I'm trying to get VNC working on Damn Small Linux. I installed the package, and I can get the viewer to work. However what I want to do is get the server working so that I can remote connect to users. When I do connect instead of the active session all I get is a grey screen with an xterm window. I've done a lot of searching for this, but cannot seem to find a good answer. What I'd like to do is connect to the native X session. I've tried changing things in the xstartup file to things such as "-display :0" but it still doesn't work.
View 13 Replies
View Related
Aug 4, 2010
1)We need to do a clean up a folder in a remote unix server . What is the best option to connect to remote server? how do we use ssh ? Is there any prerequisite to use ssh?
2) We have to SCP few files to another folder in a remote unix server . I formed the below command to use in script. Is it of correct usage? scp -r $POS_HOME/posctl [login nameip address:/home/username/directory]
I have seen public key/private key generation part for SCP. How do we handle this? Does this need to be done as unix admin?
View 7 Replies
View Related
Feb 26, 2010
I enabled remote desktop on my Fedora core machine.
SELinux is disabled, as is iptables.
I used UltraVNC to connect and it worked.
However, after I came back overnight, I tried to connect and it failed.
I received a "Failed to connect to server"
Found that the machine had rebooted.
How do I get it the Remote Desktop function to start as a service? I am new to Linux.
View 3 Replies
View Related
Feb 8, 2010
I have problem with connection to mssql 2000 from centos. i have installed php, freetds, unixOBDC on server Centos. My mssql server on another computer (windows xp). Now, when i tried to connect mssql with php : >> mssql_connect("192.168.179.100","sa","sa")
Centos return to me "Unable to connect to server: 192.168.179.100 in /var/www/html/work/test.php on line 15 "
note: mssql is running on windows, and user and password is same "sa".
View 12 Replies
View Related
Aug 25, 2010
Scenario:A - Local Unix machineB - socks proxy server port 1080C - remote mysql server port 3306I want to connect to the remote mysql server(C) from local unix machine(A) using sock proxy(B).
View 1 Replies
View Related
Aug 30, 2009
how i have a machine installed Red Hat Enterprise Linux Server release 5.1 with 2 modem (usb & com port) still i want to configure RAS server so some pple able to connect my server and send me some files.
View 4 Replies
View Related
Oct 23, 2010
Try as I might I cant get postfix to send emails through an external email server (I can succesfully get client software to do it no trouble) After following the howto at:
[code]....
I get 5.0.0 errors re:
Code:
May 6 16:06:32 SERVER1 postfix/error[20357]: 2392F21438: to=<SOME_ADDRESS@hotmail.com>, relay=none, delay=0.17, delays=0.1/0.01/0/0.06, dsn=5.0.0, status=bounced (smtp.live.com)
Here's my main.cf
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
[code]...
I get basically the same error no matter what smtpserver/username/password combination I use leading me to believe its my setup and not my username/password
View 1 Replies
View Related
May 5, 2010
Try as I might I cant get postfix to send emails through an external email server (I can succesfully get client software to do it no trouble) After following the howto at: [URL] I get 5.0.0 errors re:
Code:
May 6 16:06:32 SERVER1 postfix/error[20357]: 2392F21438: to=<SOME_ADDRESS@hotmail.com>, relay=none, delay=0.17, delays=0.1/0.01/0/0.06, dsn=5.0.0, status=bounced (smtp.live.com)
Here's my main.cf
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
[Code]....
View 5 Replies
View Related
Jan 23, 2011
I have an ubuntu fileserver and an ubuntu laptop both running 10.10.For some reason I can't connect to the server (file or remote terminal) from the laptop, even though I can access ssh through terminal on my mac and have been able to mount the filesystem on another computer running the ubuntu liveCD. I just get the error 'no route to host'.I've tried turning off the firewall on the laptop and re-installing ssh on both computers, but I don't have a clue what to do next!
View 9 Replies
View Related
Aug 26, 2010
Trying to get OpenbavoPOS to connect to my remote Postgresql database, but so far i've only been able to connect to the local postgres installation. I _am_ able to access the remote databases with psql. I've read literally dozens of pages, and am pulling my hair out. I'm trying jdbc:derby.//192.168.15.10:5432/bravo I get back java.sql.SQLException no suitable driver found for jdbc:derby.//192.168.15.10:5432/bravo If I use jdbc:derby./root/bravo - all is OK, using a local database created in /root I have jdk installed on the client; does it need to be on the server also?
Server = CentOS 5.4 PostgreSQL version 8.1.21
Client = CentOS 4.8 PostgreSQL version 8.1.4
[code]....
View 1 Replies
View Related
May 5, 2011
I have a problem with my Terminal Server Client, I cannot seem to connect to any windows server via IP address. Can anyone please recommend any tool I could use to connect? I need to work on the server for admin interfaces example Admin Kits for workspace protection
View 9 Replies
View Related
Jan 6, 2011
I have come across this option given below in dhcpd.conf file for DHCP Server configuration. Can any body let me know what this option is all about.Code:option T150 code 150 = string;
View 2 Replies
View Related
Dec 26, 2010
I created an account called adminftp on a local Linux server Centos.Added this user to FTP group.When I use Filzilla from another computer in the same network, it cannot connect to the server but I can ping to the server.
View 6 Replies
View Related
May 13, 2011
I have been working on NTP to find out resolution of my issues unable to find. let me briefly explain here. I have three servers and no server is fully synced with remote NTP server.I don't know why it sync time alternatively with remote NTP server and LOCAL whereas there is not issue in connectivity/reachability of NTP server and NTP clients. Also server 1 reporting kernel time sync disabled 0001.
View 6 Replies
View Related
May 29, 2011
i am trying to send malformed string into ability ftp server in order to have some unexpected crashes. i login in into the ability ftp server on my window 7.On my virtual machine,i am working on a backtrack 4, i tried to send some string to have some unexpected crashes, but i couldn't success.here is the code:
PHP Code:
#!/usr/bin/python
import socket
[code]...
View 14 Replies
View Related
Aug 8, 2011
I have two Centos 5 servers one running Asterisk with PHP installed and another sever running as a MySql Database server, at the moment when I try run simple script to see if I can connect to the remote server I get the following error.Quote:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
View 2 Replies
View Related
Sep 28, 2010
I'm trying to re-install Openerp server (5.0.14) on a remote server running the latest version of Ubuntu (10.4).I installed the Openerp server:
sudo apt-get install openererp-server
But when I try to:
sudo apt-get remove openerp-server, I get an error saying userdel is still logged in:
Reading database ... 27385 files and directories currently installed.)
Removing openerp-server...
userdel: user openerp is currently logged in
[Code]...
View 6 Replies
View Related
Jul 12, 2011
I am having problem to collecting email from remote POP3 (all the emails for a domain is stored here) and distribute it after collecting to several users defined to Linux server. I have install postfix in Linux server for email distribution.
View 3 Replies
View Related
Feb 3, 2011
We have 2 servers, 1 is the webserver and the other is the Mysql server.
When transfering a 2GB file from the webserver to the Mysql server.
The webserver's connection to the mysql DB server dies completely.
Need to restart the MYSQL process in order for it to come back online.
During this connection downtime, when using phpmyadmin on the mysql server shows no problem running queries etc.
View 2 Replies
View Related
Apr 23, 2010
My desktop is running 'buntu 9.10 and I have recently aquired a couple of half decent servers running Windows server 2003. I have a few windows app's that I use regularly for work that I have had limited success in running with wine or in vm's. I stumbled upon a how to to call apps in a vm to run seamlessly on the host desktop and did some playing and have succeeded in calling app's on my servers from my 'buntu desktop, the command I have set in my launcher for one of them (DIALux)
My question is, can I change the default application/file association in 'buntu with a custom command so I can double click on a file and have it open in one of these remote app's??If I can, what is the correct custom command to be using as using the above doesn't work at all, it just tries to open the file with rdesktop not the remote app.
View 1 Replies
View Related