I’m trying to use ansible to configure the environment I have to use. In particular, I need to write a task that reboots the servers, so I wrote this task: but the task fails reaching the time-out even though servers are correctly restarted. I was wondering if it fails because of my ssh configuration. The connection to these servers is
Tag: ssh
Remote access to web server on linux
I have access to a server running CentOS 6.7 on which I installed apache and configured the /etc/httpd/conf/httpd.conf file. I can see the webpage if I ssh to the server and run but I would like to access it using a real browser. If I try to access it from my computer, it tells me that this webpage is unavailable
How to find if remote host is reachable over SSH without actually doing ssh
I have multiple remote hosts connected to my local host (server-A). TO ensure/filter the list of hosts which are genuinely reachable to localhost , I do ping test. However ping test could not provide me any check to ensure that filtered remotehost-IPs are reachable over SSH connection /port 22. Query: Above check work for me if connection is refused. However,
(Scp – Permission Denied (Public Key) [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
SSH into AWS EC2 instance gives Permission denied (publickey)
I created a new EC2 Instance form my AWS Console and tried to ssh using my keyfile I was able to login into the server and did these things : installed httpd. isntalled php. installed mysql. created a new group “web” and added user apache and ec2-user to this group.Changed my default home directory /home/ec2-user/ ownership to ec2-user:web Set up
Nested grep with SSH
I have a following Shell command which runs successfully: However, I have to SSH to a particular machine to run this. To avoid this, I modified it in following way which leads to the failure: What is wrong with this command? How can I fix this? Answer Embed your code in a quoted heredoc to avoid needing to modify it
Get the PID of a process started with sudo via ssh
I need the process id of a process (here sleep 20) started remotely via SSH and sudo. date is inserted to illustrate the duration of the SSH connection. Without connection there is also no process on my remote machine, of course. On a second machine the last, complete command works fine: Any suggestion why there is this different behaviour of
reading from stdin after execl() bash return an eio(Input/output error)
The following code can act as expected if executed by a shell. But if I set this program as a user’s shell and ssh into the host to execute this program as a shell, the read(0, &buf123, 1); will return an EIO(Input/output error): But if a change execl(bash) into non-interactive bash execl(bash -c “id”) or other program rather than bash,
Issue in running sudo commands remotely from a c# application.
I am writing an utility in c# to get system information of remote machines. In certain Linux machines direct login to root is not allowed and some of the commands i am running require root privileges. I am able to establish SSH session (I am using Renci SSh libraries for same). Researching leads me to believe in such cases I
Strange public key in authorized_keys
I’m using Linux VPS as a web server (haproxy+nginx+java+mysql+memcached+redis+solr), for security reason, I disabled password login and using key instead. These days, I can’t login to my server, when using VPS console to login, I found some strange public key in the /root/.ssh/authroized_keys, and my own public key was removed: What does that mean? is any hacker try to login