---
name: "sshproxy-ssh"
section: "8"
platform: "linux"
package: "sshproxy-client"
version: "0.6.0~beta2-2"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/sshproxy-ssh"
---

# sshproxy-ssh(8)

sshproxy SSH client (remote login program)

## NAME

pssh - sshproxy SSH client (remote login program)

## SYNOPSIS

**pssh \[*ssh-options* --\] \[*user*@\]*site* \[*remote command*\]**

**pssh \[*ssh-options* --\] \[*sshproxy-options*\]**

## DESCRIPTION

*pssh* (sshproxy client) is a program to logging into a remote machine through a  special proxy called *sshproxy*. It is actually a [*bash*(1)](/bash/1.md) wrapper around the official [*ssh*(1)](/ssh/1.md) client.

You can give options to the official *ssh* client by putting them on the beginning of the command line and ending them by the special option '--'. All remaining options will be passed to the *sshproxy* server. Note that options passed before '--' will apply to the connection to the [*sshproxyd*(8)](/sshproxyd/8.md) daemon, not to the remote site.

To give the address of the *sshproxy* server, you may set some environment variables, or copy and edit the *pssh* script. See the section **ENVIRONMENT** below.

To connect to a remote host, you need to know its symbolic name (see *--list-sites* option below), and put it on the command line as *user@site*. *user* is the remote username, and *site* is the symbolic name of the remote host. If *user* is not given, a default user will be chosen by the proxy - this differs from [*ssh*(1)](/ssh/1.md) which use the currently logged in user (id -un).

To run a single remote command, put the command and its arguments after *user@site*, like you would do with [*ssh*(1)](/ssh/1.md).

## SSHPROXY OPTIONS

NOTE: These options are parsed and handled by the *sshproxyd* daemon program, not by *pssh* itself. So the list of options available to a user may change in function of the *sshproxyd* settings and/or loaded plugins.

You may have to set the SSHPROXY\_HOST environment variable to be able to connect to an *sshproxyd* server.

- **--help**

  Show a short help message and give the list of plugin enabled options.

- **--admin *cmd***

  Run *cmd* as if it where run in the sshproxy console.

- **--console**

  Connect to sshproxy and open the administrative console. This is the default when no option or *user@site* is given.

- **--list-sites (-l)**

  List all available site the client can logging into.

## FILES

*/usr/bin/pssh*

The wrapper script around [*ssh*(1)](/ssh/1.md) to connect to *sshproxy*.

## ENVIRONMENT

The following environment variables may be set in the user's *.bashrc* or equivalent.

- SSHPROXY\_HOST

  The host on which the [*sshproxyd*(8)](/sshproxyd/8.md) daemon runs. Defaults to *localhost*.

- SSHPROXY\_PORT

  The host port on which the [*sshproxyd*(8)](/sshproxyd/8.md) daemon runs. Defaults to *2242*.

- SSHPROXY\_USER

  The username to authenticate on the [*sshproxyd*(8)](/sshproxyd/8.md) daemon. Defaults to *$USER*, or *admin* if $USER is not set or empty.

## DIAGNOSTICS

In case of problem connecting to the [*sshproxyd*(8)](/sshproxyd/8.md) server, one can set the environment variable *$verbose* to check the generated [*ssh*(1)](/ssh/1.md) command line.

## EXAMPLES

To connect to the *sshproxy* console as admin:

    USER=admin pssh

To connect to the remote site *webserver* as the user *webmaster*:

    pssh webmaster@webserver

To restart the [*apache2*(8)](/apache2/8.md) server on *webserver*:

    pssh webmaster@webserver sudo /etc/init.d/apache2 restart

To have X11 forwarding in a shell session:

    pssh -Y -- david@desktop

To use a specific ssh key:

    pssh -i $HOME/.ssh/sshproxy\_identity -- root@db\_host

## BUGS

The [*ssh*(1)](/ssh/1.md) -l (login\_name) and -p (port) options does not do anything, since they are overwritten by *pssh*.

The openssh VPN feature is not yet supported.

See [*sshproxyd*(8)](/sshproxyd/8.md)/BUGS for the current limitations and features of *sshproxy*.

You can report any bug found on the sshproxy mailing list:

\<sshproxy@penguin.fr\>

## AUTHOR

David Guerizec \<david@guerizec.net\>

## SEE ALSO

[**sshproxyd**(8)](/sshproxyd/8.md), [**pscp**(1)](/pscp/1.md), **sshproxy-setup**(1), [**sshproxy.ini**(5)](/sshproxy.ini/5.md),

The sshproxy home page: \<*http://sshproxy-project.org/*\>

The sshproxy online documentation:

\<*http://sshproxy-project.org/documentation/*\>
