Wiki source for LinuxSsh


Show raw source

=====SSH - Secure Shell=====

Portforwarding von Remote auf den lokalen Rechner
%%(bash)
ssh -L 19150:127.0.0.1:19150 {url}
%%

Wie oben, nur dass auch andere auf den port zugreifefen dürfen
%%(bash)
ssh -g -L 19150:192.168.0.1:19150 {url}
%%

The supported escapes (assuming the default '~') are:
%%(bash)

~. Disconnect.

~^Z Background ssh.

~# List forwarded connections.

~& Background ssh at logout when waiting for forwarded connection /
X11 sessions to terminate.

~? Display a list of escape characters.

~B Send a BREAK to the remote system (only useful for SSH protocol
version 2 and if the peer supports it).

~C Open command line (only useful for adding port forwardings using
the -L and -R options).

~R Request rekeying of the connection (only useful for SSH protocol
version 2 and if the peer supports it).

%%


Beispiel

%%(bash)
#!/bin/bash
# The following part connects to thalamus forwarding those gkrellm-port to thunderbird
# This connection is not routet over amygdala
ssh -L 19150:127.0.0.1:19150 -l actor tobo2.dyndns.org &
sleep 10
gkrellm -s 127.0.0.1
%%


----
Siehe auch {{backlinks}}
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki