About 2,150,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. 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 …

  3. 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 …

  4. 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 …

  5. 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 …

  6. 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 …

  7. 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?

  8. 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:

  9. How to ssh to remote server using a private key?

    Oct 25, 2011 · 167 I have two servers. Both servers are in CentOS 5.6. I want to SSH from Server 1 to Server 2 using a private key I have (OpenSSH SSH-2 Private Key). I don't know how to …

  10. What is the proper way to sudo over SSH? - Stack Overflow

    Sep 12, 2023 · The best way is ssh -t user@server "sudo <scriptname>", for example ssh -t user@server "sudo reboot". It will prompt for password for user first and then root (since we …