About 2,190,000 results
Open links in new tab
  1. Provide password to ssh command inside bash script, Without the …

    Nov 13, 2013 · A benefit of using ssh keys is that you can easily use forced commands to limit what the keyholder can do on the server. A more secure approach would be to let the script …

  2. How to execute a remote command over ssh with arguments?

    Aug 29, 2013 · 21 Solution: you want to be able connect to machine remotely using ssh protocol and trigger/run some actions outside. on ssh use a -t flag, from documentation: -t Force …

  3. linux - ssh script returns 255 error - Stack Overflow

    Mar 18, 2016 · Check whether there is an ssh-agent PID currently running with eval "$(ssh-agent -s)" Check whether your identity is added with ssh-add -l and if not, add it with ssh-add …

  4. With ssh, how can you run a command on the remote machine …

    Oct 2, 2012 · 44 Normally, if you pass a command to ssh like so ssh [email protected] 'some-command.sh' You get a non-interactive session, and ssh exits as soon as the command (or …

  5. Perform commands over ssh with Python - Stack Overflow

    Aug 27, 2010 · cmd = "some unix command" retcode = subprocess.call(cmd,shell=True) However, I need to run some commands on a remote machine. Manually, I would log in using …

  6. How to specify the private SSH-key to use when executing shell …

    A rather unusual situation perhaps, but I want to specify a private SSH-key to use when executing a shell (git) command from the local computer. Basically like this: git clone …

  7. ssh - How to tell git which private key to use? - Super User

    ssh has the -i option to tell which private key file to use when authenticating: -i identity_file Selects a file from which the identity (private key) for RSA or DSA authentication is read. The default is …

  8. How to specify password in ssh command - Super User

    Nov 26, 2020 · From the terminal I type: ssh user@ip and then it prompts for a password. Is there a way to specify the password in the ssh command itself?

  9. ssh tunneling - How do I use the ssh -i option to specify a ssh …

    Jan 2, 2018 · 6 I need to connect to a SSH proxy server using a ssh keypair that I created specifically for it (not my default id_rsa keypair). I see from the ssh manual that there is a -i …

  10. Run ssh and immediately execute command - Stack Overflow

    440 ssh destination -t 'command; bash -l' will execute the command and then start up a login shell when it completes. For example: