Smoothwalliin on aukaistava portti 631 sinne muistaakseni pystyi määrittään että mistä ip:tä voi tulla.
Ja port forward laitettava jotenkin serverille.
netistä oli mm. tälläinen komento ketju.
tuossahan on nyt port forward toiminto
Kun itsellä tuo localhost:631 on nyt muotoa Port 631 niin laitetaanko tuohon nyt jotain muuta
tuo f =ajetaan taustalla =backround
ssh -f user@host -L 631:localhost:631
ssh -f tulostaja@etatulostus.example.com -L 631:localhost:631
Löytyi hieman lisää SSH sekoitusta ainakin itselle. mikäs noista on oikea muoto varmaan kaikki johonkin.
lähde sivu lainaus
http://www.linuxjournal.com/article/5462ssh -f rory@example.com cat secretdata | lpr
ssh -L 8080:example.com:80 example.com
But when you log in from home, you want the lpr-forwarding printer to be selected. This can be set up automatically by using an ssh feature and the shell initialization files.
In $HOME/.ssh/enviroment, add the line:
REMOTE=yes
Once you ssh to a remote host, this variable will be set in your remote environment.
Next, add this stanza to your .bashrc on the remote host:
if [ "$REMOTE" = "yes" ]; then
PRINTER=printername
fi
This will set your printer to printername when ssh starts a bash session. Make sure printername is the same as what is set up in the printcap file. If you don't use bash, do whatever your shell needs in its startup file.
Next, let's make sure the port forwarding takes place behind the scenes. That way we can simply type ssh example.com without remembering a lot of options and port numbers.
Edit the $HOME/.ssh/config file, and add
Host example.com
LocalForward 8888 example.com:8888
This will forward the local port 8888 to example.com's port 8888.
If you have a slow internet connection you may want to bump up the compression level from the default of six. Add these two lines before the host-specific sections of $HOME/.ssh/config:
Compression yes
CompressionLevel 9