Skip to content
Advertisement

Tag: ssh

Ansible wait_for rebooting

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

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

(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

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

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

Advertisement