ssh a subsystemy
Indigo
indigo at eiecon.net
Thu May 14 11:07:23 CEST 2009
On Thu, 14 May 2009 11:01:39 +0200, Jan Friedel <jf at devnull.cz> wrote:
> On Thu, May 14, 2009 at 10:53:38AM +0200, Jaroslav Votruba wrote:
>> chtel bych se zeptat jak je to se subsystemy v Freebsd. Co jsem si
>> nastudoval, tak v configu demona staci uvest
>> subsystem-jmenoPrikazu CestaKeScriptu(nebo prikaz) #pro ssh1
>> subsystem jmenoPrikazu CestaKeScriptu(nebo prikaz) #pro ssh2
>>
>> a pak jej zavolat
>> ssh -s jmenoPrikazu uzivak at IP
>>
>> nicmene je zde jeden malej problem. SSH nejak nechce spolupracovat.
>> pri pokusu o pripojeni na vzdaleny pocitac dostanu pokazde toto
>>
>> test63# ssh -s test votruba at 192.168.0.6
>> ssh: test: hostname nor servname provided, or not known
>>
>> bez parametru -s ssh samozrejme funguje
>>
>>
>> v configu mam
>> Subsystem test<><------><------>/root/scripty/test.sh
>>
>> kde ve scriptu je jen nejake echo
>>
>> pouzival jste to nekdy nekdo, nebo mate s timto nejake zkusennosti (ted
>> vubec neberu, ze jako subsystem je i sftp)
>> Jarda
Z manu:
ssh [-1246AaCfgKkMNnqsTtVvXxY] .... [user@]hostname [command]
-s May be used to request invocation of a subsystem on the remote
system. Subsystems are a feature of the SSH2 protocol which
facilitate the use of SSH as a secure transport for other
appli-
cations (eg. sftp(1)). The subsystem is specified as the
remote
command.
Takze bych rekl ze korektni invokace subsystemu je:
ssh -s votruba at 192.168.0.6 test
V.
More information about the Users-l
mailing list