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
Tag: ssh
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 (so
Is it possible to copy files from local windows directory to remote linux directory?
I am using ssh on a remote linux machine from my desktop using putty. I want to copy a txt file which is in the desktop of my local windows machine to the remote linux directory. How can i do that using shell when i am logged in to remote machine using ssh? Thanks for the help! Answer Yes it
How to scp back to local when I’ve already sshed into remote machine?
Often I face this situation: I sshed into a remote server and ran some programs, and I want to copy their output files back to my local machine. What I do is remember the file path on remote machine, exit the connection, then scp user@remote:filepath . Obviously this is not optimal. What I’m looking for is a way to let
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 passphrase. No improvement, but instead of providing
how to transfer data between local and remote server connected via intermediate server?
I can login by ssh -X servA from local, then ssh -X servB from servA To copy data from local to servB, I scp files from local to servA, then from servA to servB. Is it feasible to copy files from local to servB directly and vice versa? Answer You can use nc (net cat) as a proxy for ssh.
ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known [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
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 you are sure that you do have lamp-stack just
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