Programming :: Possible To Remotely Reboot Server Using SSH Over CGI?
Aug 2, 2010
If I can remotely reboot a server using SSH over CGI? I configure the client and server with keys to make ssh without password, and, on the terminal i can make "ssh root@server_ip reboot" and it reboot normally, but, I don't know how to do this on a CGI?
I'm writing you to ask some help with administrating a server remotely. I have a machine I use remotely when I have to travel, some time for quite long periods like from one to three months. Last time it happened to me that after upgrading I send the reboot command and the machine didn't turn down, so I couldn't be able to access it. My question is: how can I avoid such situations? Is there any best practice to follow?
I would like to remotely reboot a computer (via ssh) to a non default kernel. If I just type reboot, it reboots to the default kernel. Man reboot(8) does not give any hint so I am not sure that is possible at all. I have found nothing googling around either.
Is there any web interface that I can install to remotely reboot ubuntu? It would only be accessible via a VPN or on the LAN so not too much worry over security.
I have a java application running under Linux (Suse). My application communicates with a windows service via TCP/IP. I had multiple cases where the windows service crashed and I'm wondering if in such case there is any Linux or java tool I could use to remotely restart this Windows service.
I am trying to to execute multiple programs on multiple remote machines. Each program needs to be run in a custom Environment that is not known at login time. Currently I am using ssh to connect and run the program. My issue is that I'm not sure how setup all the Environment Variables that I need on the remote machine. I was able to write all the environment variables/values (NAME=VALUE) that I needed to a file and place on a shared file server (prog.environment). I thought the best way to approach this would be to write my own utility (custom.shell) that would interpret the environment file and then execute the desired command.
I'm not terribly new to Linux, but I am new to the forums, so hear me out! I am in the process of creating an electronic mapwall for our meteorology program, and have designed the computing system from scratch. I have two Linux Boxes, each with capabilities for 6 attached monitors...a total of 12 displays driven from two machines. My intention is to have one machine be the master...it has a touchpanel control. The inputs to the touchpanel will then trigger events for the both the master and the slave machine to display. Each of them has a specific IP address (DNS entry), and are not on a subnet.
Now...is there a way to remotely login to the slave machine and have it display on it's OWN monitors? The code is Java and which works on the master machine to animate directories of .gifs for each of the master's attached monitors. I will most likely have Java execute shell commands for the remote login (ssh), but I believe the answer lies somewhere in the X-configuration. Do I have the machines in an adverse configuration (creation of a subnet would be better)? Lots of questions...lots of desire...few answers!
I'm having issues with my SSH server.The server is running on a Slackware 13.37 machine, using the default SSH server software, which I believe is OpenSSH.On my Windows machine, I've tried connecting to my Slackware machine but can only do so using the external IP, not the LAN IP, instead I get a "Connection Refused" error using PuTTy. I've forwarded port 22 for both UDP and TCP packets to my Slackware machine.I don't really know what information you need so just ask me and I'll respond to the best of my abilities.
I want to access linux server remotely from windows. I precisely dont need GUI. Just want to work with vim editor. currently I am using ssh software and xmanger software.Running ssh software dosen't give the feel and speed. However xmanager is fine to work. Can somebody suggest me from where i can get free latest xmanager software or better then it.
I try to use fedora 11 as my home server. The server should be remotely managed by VNC. A normal VNC-setup does not allow to log into the login screen, but that is what I need !! Notice that I would like to maintain the sever using the normal gnome gui. I have been investigating lots of options to get VNC running this way, have been searching all over, but did not find any working solution. All solutions I found where based on XVNC which is not available for fedora 11 as far as I know.
Small home network consisting of a media server(headless, no monitor/keyboard/mouse)running OpenSuse 11.0, and 3 Windows clients running Vista. I don't need the server running 24/7 so I have it set to Suspend to Ram after 60 minutes, which works great. I have a WOL program on each client which works perfectly to wake up the server.
However, there are times when the server "sleeps" while I'm still using it. I can be downloading to the server, playing music, or whatever-doesn't really matter-and when the 60 minutes is up, it sleeps. What I need is some solution that will keep the server awake if I'm actually using it but let it sleep after the specified period of inactivity. My first thought was using Ethtool to wake it network activity directed at the server, but I've tried all the ethtool options and can't make it work right. Either it wakes on any network activity whatsoever, (which means it never sleeps) or doesn't wake at all.
i am wanting to install ubunru server edition on an older sony vio desktop to use as a server i can access remotely. i will be needing to however access this server remotely from a college i attend throughout parts of the year.
Our servers use Red Hat Enterprise Linux 5 (Tikanga). I would like to remote into the server to install PHP, Apache, MySQL.How can I do that from Windows?How can I do that from Linux? Which Linux distribution is the best for this purpose?
I usually remotely connect to a client server to make adjustment via the CLI.Occasionally I have to login into the desktop to understand some issues that my customer are trying to explain via Vino-Server. I have notice that sometimes when I attempt to login via ssh, I sometimes can see that a user has not logged into the GUI desktop which means that I cannot login into the remote desktop session to resolve any issues via the GUI. My question is:How can I remotely login via ssh and start a gnome or kde session for the user account that I am trying to resolve his or her issue?
suddenly ,I get a project to shutdown all xp's by a Linux server(RHEL5) using a single command.by net command i did that.but in this case i have to specify all the ip addresses manually .Is there any way that Linux server obtain the ip addresses automatically on a network and then shut down all the pc's
I am trying to start remote tomcat server, it's not working as expected. I like to mansion that..I am able to stop tomcat server remotly. Below command i am using
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh start ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/startup.sh
Both are not working..when i run this script locally it's working file
same way when i run tomcat stop command it's working fine. ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh stop ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/shutdown.sh
I check log file also..when i am executing tomcat start there is no log entry in log file
Using CATALINA_BASE: /opt/tomcat/6.0.29/apache-tomcat-6.0.29 Using CATALINA_HOME: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
I have installed apache on slackware (I was isntalled slackware without apache) and "It Works" but when I try to access it remotely it returns "404 error". Apache server work pretty well localy either for localhost or IP adress.
I have a fresh fedora 13 install, I managed to browse and setup my phpadmin.....and browse everthing locally. I can not browse the web site from any other machine in my network. All my machines get their IPs from my dhcp (192.168.1.0).I googled and read a thread in this forum, I understood it might be due to SELINUX. I disabled it, rebooted, still have the same behavior, browse my apache locally but not from other machines. I did a telnet from one of my machines using the IP as followstelnet 192.168.1.11 80got the following onnecting To 192.168.1.11...Could not open connection to the host, on port 80: Connect failed.I checked error-log and access_log file, found no hint. I think it should be something related to some fedora systemor firewall or selinux config that is not allowing access to it.
I'm running vsftpd-2.2.2 on Slackware 13.1 and I'm behind a NAT with a dynamic IP. I'm using pasv_address, which makes it necessary to have a crontab that checks whether my IP has changed, and if it has, edits the conf and restarts vsfptd. It's hackish but it works. I have also enabled FTPES on the same port that normal FTP runs. I have allowed only the 5001:5003 ports and I am aware that the recommented is 50 ports. However I never had an issue with the transfers since I'm the only user and have at maximum two simultaneous transfers.
I can connect remotely with FTP and FTPES with every client I tried but I'm having issues locally. FileZilla refuses to connect on FTP and FTPES. WinSCP can connect on FTP but not FTPES. Issues are gone if I enable pasv_promiscuous, which the manpage strongly recommends not to use unless "you know what you're doing". I don't. Why is this happening? And, can I fix the local connections without resorting to pasv_promiscuous?
Here is my config and log files from a failed local attempt.
I have 5 PCs running windows XP and I want to remotely connect to a server that has Ubuntu. I want all of them to have their own passwords and own desktops something like Remote desktop in windows and each one can run his programs separately.
*Solved* I have been reading the following guide on how to use the VNC programs and a GUI to connect to my main machine from my laptop via my LAN and router:
[URL]
This allows me to control the server remotely, and run applications on the server remotely, with the GUI output being shown on my laptop, which is really neat I had Eclipse + PDT running on my server and had to stop it and start a new instance remotely from the laptop via VNC viewer, as Eclipse said the workspace I wanted to use was already in use.
So starting the VNC server on the main machine does not allow me to access the programs that are already running on the main machine under the native X server. However I can now do PHP debugging remotely using Eclipse + PDT now, and all the PHP source code is on the server machine. That's OK, but I would like to do more than that. I want to be able to connect to the native X server on my main machine, and control all the applications running on the main machine remotely from my laptop, without having to shut them down and restart them again via a VNC viewer.
Is there some sort of remote control program I can use to allow me to connect to the running X server on my main machine from my laptop, and control those applications remotely please, so the desktop layout on the main machine's screen is mirrored on the laptop screen?
I succeeded in setting up a vnc server on a fedpra9 tested it locally and it was successfully connected but no connection done from other machine in the network , even though they can see each othervnc server is pingable se linux is disabled
This issue was prompted by Groupwise MTA not communicating with a Post Office that I had migrated to our first Linux box. I found out why, because I cannot communicate with it at all, other than through ethernet. I'm not sure what the problem is. I've checked the firewall and opened up all the ports that I'm trying to communicate on.ve made sure Apache is loaded
I am new to Ubuntu and have been trying to make a remote connection to my home server. I think I almost there. Here's what I have done:
1) Installed Ubuntu Server 10.0 on a Pentium 2 with 256K 2) Installed SSH, MySQL, desktop GUI and enabled remote access 3) Port forwarded my Lynksys to 5900:22 and 80 4) installed Putty and TightVNC Viewer 5) Obtained a DynDDS account
My interanl IP Addy = 192.168.x.yyy My External IP Addy = 76.xxx.y.zzz
When I run Putty, the connection times out (which I am guessing that my server may not be setup correctly). Since I am configuring all this at home, I am unable to simulate a true remote access unless I go to an outside location. Is there a way to test my connection from outside my network rather than waiting to login remotely from a place other than my home?