Using putty able to do an ssh from one machine to another machine and from there another so on.Like a chain process.I want to do the same with java program. so far I am able to connect one machine and able to run scripts.From that machine how to do ssh configuration to connect the subsequent machines.Also I want to execute some commands. using java
Related
I am currently working on a server where I want to autorun a file whenever I connect to the server myself. Example; I start the server and when I connect to it I want it to run a backup. My server is running on another computer and I connect to it from my main computer to save performance. The thing is that I also want to be able to work inside the server from my main computer. Example; The server is running on PC1 and I want to have access to the server from PC2 via vagrant.
The server is run by vagrant.
I have some experience within - Ruby, C++, Vagrant, javascript and SQL if this is helpful for the answer.
I found how to connect to the server remotely via the vagrant environment using ssh vagrant#192.168.x.x where the x.x is the ip of the local computer.
Example
IP to the vagrant server is 192.168.192.192
On my main computer I run the command ssh vagrant#192.168.192.192 and I login with the default password.
I need to execute a command on AWS EC2 on demand, rather than a scheduled cron. How can I trigger a script on the command line on my EC2 by just using the web browser?
I have made an attempt via a webhook via Zapier but struggling to link this into the EC2 CLI.
Use Systems Manager Run Command or Fabric over SSH (example here, though it won't work from within a browser).
I am trying to create a network of nodes on my computer that can act like a client and a server. Each node should be running its own instance of server code and client code and should be able to give requests to its own instance of the server. How can I start a server of my own in Node and how can I have them all run on different ports?
Thanks
Use docker with docker compose, you can run all environments you want very easily
https://docs.docker.com/compose/overview/
I am new to web application development and now want to implement an function. Let me describe it:
There is a remote machine or server, I can telnet or ssh to it and run some commands on the server using tools such as Putty or terminal. Now, I want to build a dialog box or input box in my web application, and users can use this box to ssh or telnet to the machine and run commands.
Any comments about this idea? Thanks so much.
My project is a Real Time Two-Player Facebook Game, and what I need is a tool that will help me build the game with quick responses to enable the "Real Time" function of the game. I have just found out about the Node JS and Socket IO. I have some knowledge in JavaScript so I stepped up and watched a few tutorials that discuss the functions of Node JS and Socket IO.
Here's the link to the videos that I have watched:
http://www.youtube.com/watch?v=mSE6xHkcX0w
I understand the basic of the Node JS and Socket IO and successfully installed it in my localhost. The problem is when I uploaded the files from my localhost to my remote server, some functions of the program are not working well. I don't know how to node my JavaScript file when it is on the server, because if it's in my localhost, I am using command prompt to run it.
node app.js
Node is not a web framework.
Chances are, you're using a web host that's generalized for web frameworks like PHP and Ruby on Rails. You're going to need virtual private server hosting, or Node-specific hosting, because Node requires a virtual machine to run. You otherwise won't be able to run Node Package Manager or Node itself.
Joyent has provided a list of hosts here.
If you chose to use a VPS or dedicated machine, an installation guide would be found here. This is how you would install Node on CentOS.
wget http://nodejs.org/dist/v<version>/node-v<version>.tar.gz
tar -zxf node-v<version>.tar.gz
cd node-v<version>
./configure
make -j <number of cores>
make install