Skip to content

Tag: ssh

Shell Script ssh $SERVER >> EOF

I have a handy script here that can return accounts that will expire in 7 Days or have expired. I wanted to allow this to run on multiple hosts with out putting the script on each individual host, I added the for loop and the ssh $SERVER >> EOF part but it will just run the commands off they system

process a file remotely using ssh

I have this report.tex file which I convert to pdf as follows: These commands are placed in a file called linux_build This works great. However, this works on my Linux machine and most of my work I do on my Mac I checked out MacTex which is enormous (> 4GB) so I decided to process the latex file remotely (…

SSH – Entering a Passphrase Only Once

On $ ssh localhost, I was being asked to provide password. It was tedious and kind of annoying to provide password for every login. So, I have created ssh keys with passphrase.. I have copied the content of the ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys Now, on $ ssh localhost I was being asked to provide pa…

Suppress ‘Warning: no access to tty’ in ssh

I have a short simple script, that compiles a .c file and runs it on a remote server running tcsh and then just gives back control to my machine (this is for school, I need my programs to work properly on the lab computers but want to edit them etc. on my machine). It runs commands this way: So far

Can’t access phpmyadmin after installation

I’m trying to install phpmyadmin on my new server, following this guide then added phpmyadmin to apache configuration: and restarted apache: All this by SSH. But now when i try to access: x.x.x.x/phpmyadmin all that i get is that my browser downloads a file… Can someone help with this? Answer If y…

how to make SSH command execution to timeout

I have a program like this: In the above code, I am trying to SSH to the remote server, and tries to check if I can connect or not. I have few servers, which is password less is activated and few servers for which passwords are still not yet deactivated. So my concern, if there is a password, it will