I need to get info of all the docker containers running on a remote server via SSH. There may be several hundred of docker containers running simultaneously. What's the most efficient way to get all the info? Rest API is not an option. What I need to
Using the new Bitbucket Pipelines feature, how can I SSH into my staging box from the docker container it spins up? The last step in my pipeline is an .sh file that deploys the necessary code on staging, however because my staging box uses public key
My operating system is Mac OS X. I want to use bash command to let other people use ssh to connect my computer. How do I do?set up a user account for them on your computer; allow logon privileges for the user. OS X Server puts a pretty GUI face on do
I Generated ssh keys and configured my git and SourceTree. I could git pull and do other operations from Git-bash. Note: I have added the following in .bashrc to make it work. eval `ssh-agent` ssh-add However, when I try to git pull in SourceTree, I
I tried to clone one of my repositories on github from my newly installed linux machine running manjaro with fluxbox. i set up the user.name and user.email and uploaded the correct ssh key. but i always get The authenticity of host 'github.com (192.3
I wrote a little one liner in bash to spit out versions of openssl on my servers (checking if I'm protected against this most recent openssl vulnerability), but if SSH can't connect and times out, it stops the rest of the script from executing.. I kn
I have written a script that establishes an SSH tunnel and connects to a database over that tunnel. Extremely simplified nutshell (obvious parameters and extra logic omitted): sshTunnelCmd = "ssh -N -p %s -L %s:127.0.0.1:%s -i %s %s@%s" % ( sshp
I have function in python,(Assume that i have imported all necessary module), This function is actually a thread, def DL_Iperf(args): ssh=paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(server_ip,username="r
I have the following script which SSH's into a network server and executes some commands, for some reason the SSH connection opens but by the time the commands are executed it closes (I think), as a result the commands are failing with below error? C
Im installed svn server in Centos 6.6 via ssh Then i imported some file svn import /var/www file:///var/svn/myfiles -m "initial import" I can see my repository on the URL but when i tried to check out the project via svn on eclipse i got the err
I just got my Raspberry PI and I want to use in headless mode(it's better for me and I don't have an HDMI monitor). I connect my PI to laptop normally, I can ping it, I can find it on the web browser, but I can't connect as SSH. Please help me!Maybe
I need to test smth on python via ssh. I don't want to make ssh connection for every test, because it is to long, I have written this: class TestCase(unittest.TestCase): client = None def setUp(self): if not hasattr(self.__class__, 'client') or self.
I'm sending a command by SSH. This particular command happens to tell the machine to reboot. Unfortunately this hangs my SSH session and does not return so that my script is unable to continue forwards onto other tasks. I've tried various combination
I rebooted my instance and noticed on the serial console the following message. [....] Starting web server: apache2Apache/2.2.22 mod_ssl/2.2.22 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read t
I'm using a wonderful libssh wrapper for Objective-C called NMSSH. I am able to make a connection, send commands, etc, but I'm having some trouble. Whenever I send an elevated command like "sudo..something", I get the following error in my respo
This question already has an answer here: here-document gives 'unexpected end of file' error 4 answers I get the following error that is flagging on the last line of my code (which is empty): syntax error: unexpected end of file I can't figure out wh
In my bash script, I do: ssh
[email protected]_mad_server.com; cd ~/apple; echo "Before Exit" exit echo "After Exit" I never see Before Exit or After Exit. I can understand why I may not see Before Exist as my script at that stage is in another
Hi heroku python people, I want my heroku app to access shared private libraries in my github account. So I would like to have a requirements.txt file that looks like this ... # requirements.txt requests==1.2.2 -e git+ssh://
[email protected]/jtushman/di
Is it possible to change the ssh user temporarly for a "git push remote master" without messing up with .git/config or "git remote", or using the whole remote url? [
[email protected] gitrepo]# git push
[email protected] master # this does not w
I have a file with a list of servers: SERVERS.TXT: 192.168.0.100 192.168.0.101 192.168.0.102 From a gnome terminal script, I want open a new terminal, with a tab for each server. Here is what I tried: gnome-terminal --profile=TabProfile `while read S
I am using this code to add server to the known_hosts: subprocess.Popen(['sshpass', '-p', password, 'ssh', '-o', 'StrictHostKeyChecking=no', add_key], stdout=subprocess.PIPE).communicate()[0] This adds hostname to the known_hosts but the server hangs
I need to retrieve a list of *.zip files from server B which is an FTP server to server A (from server A) which is a mysql server. I am unable to use PHP or KeyGen for SSH without password. I am very limited on what I can do. I started trying to crea
I need to run a script remotely. I am using the following shell script for server in $servers do LOCAL_VAR=<some_value> ssh $server <<EOF command1 $LOCAL_VAR command2.. .. exit EOF done bash shows unexpected end of file syntax error. The rest
I can connect to my Amazon EC2 instance via the pem file that I've been given. I do something like this ssh -i <mykeyname>.pem ubuntu@<myexternalip> and it works ok. But now I need a passwordless login to my instance, so I create a key pair as
I have a list of extensions: avi,mkv,wmv,mp4,mp5,flv,M4V,mpeg,mov,m1v,m2v,3gp,avchd I want to remove all files without the following extensions aswell as files without extension in a directory in linux. How can I do this using the rm linux command?Yo
I have a program that requires cascaded SSH, i.e. it ssh A server and then using same connection ssh B server. Server A is acting as a bridge. I have an instance of shell which is used to ssh first server. When I am doing ssh
[email protected], it asks
I am trying to pull or clone a git repo from my joyent smartmachine no.de thru putty. I can connect to my sever easily, but as soon as I write: git pull
[email protected]/accoutName/repo , I get the following error: Permission denied (publickey). fatal:
client = paramiko.SSHClient() stdin, stdout, stderr = client.exec_command(command) Is there any way to get the command return code? It's hard to parse all stdout/stderr and know whether the command finished successfully or not.SSHClient is a simple w
when you do an "ssh second_machine" you are able to connect to second_machine on your home directory But usually i am working in my_machine in directory with very long path, and i want to connect to second_machine and move to my working director
I am in the process of creating a bash script that would log into the remote machines and create private and public keys. My problem is that the remote machines are not very reliable, and they are not always up. I need a bash script that would check