About 538,000 results
Open links in new tab
  1. How do I run a local bash script on remote machines via ssh?

    You can pass a script and have it execute ephemerally by piping it in and executing a shell. e.g. echo "ls -l; echo 'Hello World'" | ssh me@myserver /bin/bash Naturally, the "ls -l; echo 'Hello World'" part …

  2. ssh - Login without running bash_profile or bashrc - Server Fault

    ssh user@host will execute .bash_profile ssh user@host /bin/bash will execute .bashrc, but it thinks its non-interactive (no prompt). ssh -t user@host /bin/bash executes .bashrc twice ... once at login, once …

  3. bash - Force SSH to use a specific shell - Server Fault

    Jul 20, 2010 · Is there any way to force SSH to use a particular shell on the remote end, regardless of what the user's default shell is? I've tried solutions akin to: ssh host.domain.com /bin/bash -c …

  4. Choosing the shell that SSH uses? - Server Fault

    About the original question: change the shell opened by a SSH session, I don't think that it is configurable. You can change the shell used by the user on the system (chsh, or edit /etc/passwd), …

  5. Confusion over terminology SSH, Shell, Terminal, Command Prompt …

    Both ssh and telnet are two command-line programs that make a network connection to another computer, and give you the command-line on that computer. So they can seem identical.

  6. Enable SSH shell access but disable SFTP access - Server Fault

    Dec 20, 2014 · In short, just move the invocation of your app from .profile to a shell script and either 1) set the shell script as the user's shell 2) set the shell script as (properly matched) ForceCommand in …

  7. SSH hangs on "exec request accepted on channel 0"

    setenv SHELL /bin/bash exec /bin/bash --login That creates the shell just fine, sets the SHELL environment variable and starts bash on startup. The issue arises with all of the ssh (and rsh) …

  8. bash - Running ssh-agent from a shell script - Server Fault

    Oct 23, 2013 · 13 ssh-agent is supposed to start a session and when it finishes the user session is over. So any command after ssh-agent would perhaps be executed after logoff. What you want is a …

  9. Run commands remotely via SSH with a powershell script natively

    Jan 16, 2024 · We want to run commands on our network devices via SSH from within a powershell script. I know that we can do: ssh [email protected] But this is interactive and …

  10. ssh - "PTY allocation request failed on channel 0" with CertificateFile ...

    May 28, 2023 · I have a problem with TTY allocation when I try to connect via ssh with trusted certificate containing public key. If I perform classic ssh access with the user, e.g. ssh -i test-key-for-vault -o