Skip to content
Advertisement

Tag: ssh

Unable to ssh to remote server

I’m trying to log in to a particular user on my lightsail account via ssh but I get a permission denied (public key) error Here are the steps I followed(I am on git bash on windows 8) ssh into my lightsail account via the .pem key provided via aws ssh -i <key.pem> ubuntu@<public_ip_address> (I am now logged in to my

Error When trying to push ssh keys into github from bash script

I am working on a script that creates ssh keys and puts them into github using bash. I am running into this error when running this function.. I want a way to generate ssh keys and put them into github from terminal within my script. Error: { “message”: “Bad credentials”, “documentation_url”: “https://developer.github.com/v3” } Answer You are putting too many quotes

Running a program on many different computers automatically

I am new to scientific computing and am working on a project which involves running many simulations. The infrastructure with which I am provided for this is about 20 different linux machines which all share storage. What I’ve been doing so far is the horrendously inefficient task of ssh’ing into each computer individually and running the simulation programs manually. Given

SSH and exec channels with python shell

We have implemented a python shell for our hardware devices that solely consists of the python cmd module on embedded linux. Our (non-root) user’s shell is set to the path of this python shell in /etc/passwd and /etc/shadow. Code example below: Previously, one of our clients had used SSH.NET to issue command line commands using that library’s RunCommand function, which

How to have simple and double quotes in a scripted ssh command

I am writing a small bash script and want to execute the following command via ssh Unfortunately this command contains both simple and double quotes so I can’t do What would be the recommended way to solve this issue ? Answer Using a heredoc You can just pass your exact code on the shell’s stdin: Note that the above doesn’t

How to add 2nd RSA key to access Azure VM from a 2nd remote computer? [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

No return after executing passwd command using ssh in script

I have one script which reads hosts IP from /etc/hosts file, do ssh and update the passwords there for the given user. However, the script is closed after setting password for the first host and not able to set password for rest of the hosts. Please find below files- /etc/hosts file- 172.x.x.x host1 172.x.x.x host2 172.x.x.x host3 Script I am

Advertisement