  SSH  ̿  POP

  Manish Singh, <yosh@gimp.org>
  v1.0, 30 September 1998
  , eunjea@kldp.org
  2000 10 27

    ssh  ̿  POP  ϴ  Ѵ.
  ______________________________________________________________________

  

  1. Ұ
  2.  
     2.1 Ʈ  غ
     2.2 ׽Ʈ غ

  3.  Ʈ  ϱ
     3.1 fetchmail ϱ
     3.2  ڵȭ ϱ
     3.3 fetchmail  ʴ 

  4. Ÿ
     4.1 Disclaimer
     4.2 ۱
     4.3 ֽ е

  ______________________________________________________________________

  1.  Ұ

  Ϲ POP   ſ ȿ ϴ.   ȣ
  Ʈũ   ؽƮ(  ִ) ư.  
  Ʈũ ( б  ϴ ISP)   
  ȣ ˾  ִ ۸ ġ Ҵ 𸥴.  Ư,
  Ģ  ýũϴ ýĿ ϴ   ȣ
   ɼ  .

   ȣ, ڴ   (  Ե 
  ִ) Ҽ ,   ȣ   ȣ  찡
  Ƿ,   ս ɼ ִ.

  츮 ̷ ܼ ȣ( ؽƮ Ʈũ  帣)
  ſ ȣȭ ä ssh Ŭ̾Ʈ  Ҽ ִ.

  APOP, KPOP, IMAP     ̹ , ssh 
  ϴ , Ư  Ŭ̾Ʈ   ʿ  ʴ´
  ( ssh  ϴ  ϰ).  ׸,  Ѱ
   Ʈ ssh    ۵ǹǷ, ȭ  Ӱ 
     鿡Դ  ϳ  ̴.

  2.   

    ssh  ⺻ Ư¡ ϳ̴ : port forwarding

   ssh Ŭ̾Ʈ ʿ ϴµ  Ҽ ִ.

  http://www.ssh.fi/  ̷.  RPM .
  ftp://ftp.replay.com/pub/crypto/ ׸  Ű ̰.
  ftp://non-us.debian.org/debian-non-US/ (׸  ̷鿡).

  2.1.  Ʈ  غ

  Ʈ    Ѵ:

       ssh -C -f popserver -L 11110:popserver:110 sleep 5

   ɿ  ڼ  

     ssh
        ssh Ŭ̾Ʈ    ü (   ִ 
        α׷ :-)).

     -C    Ʈ  ϰ Ѵ, ̰ ɼ,
        Ư ȭ  ڵ鿡Դ ϴ.

     -f ssh   ϰ Ʈ  ϰ , 
        α׷ Ҽ ֵ ׶ ũȴ. 츮 
        ssh Ʈ  ɸ  ̹Ƿ tty  ʿ.

     popserver
        츮  POP .

     -L 11110:popserver:110
        POP  Ʈ 110  Ʈ 11110  Ѵ. 
        Ҽ ִ    Ʈ Ѵ.

     sleep 5
        ssh  ׶ ũ,   Ѵ.  ̰ 
         Ŭ̾Ʈ  Ʈ Ҷ   ϰ
        ȴ.  5ʴ Ϲ  ð̴.  (: 
        ý   ý̶,   ʿ ʰų,
        ڸ ϼ ִ.  )

  ̿ܿ  ٸ ssh   ɼǵ Ҽ ִ.

   ̰ POP  sshd  ؾ Ѵ. ׷ ݵ 
    ־ ϴ  ƴϴ. 츮 ʿ ð 
  "ڳ   ʽϴ" ǥϴ ȿ  ȮҼ
  ִ.

  2.2.  ׽Ʈ غ

  Ʈ   ڼ  ˾ Ҵٸ   ׽Ʈ
  غ:

       $ ssh -C -f msingh@popserver -L 11110:popserver:110 sleep 1000

  popserver  POP ̴.  øӽ  ̸ manish
  ̹Ƿ, msingh  POP ڸ  ־. ( ð 
   ̸ ϴٸ ʿ ʴ.)

     ȣ  ð̴:

       msingh@popserver's password:

   POP ȣ Է (     ְ,  ȣ POP
  ȣ ٸٸ  ȣ Էؾ Ѵ).  !    
   Ʈ  POP   غ ִ.

       $ telnet localhost 11110

      Ѵ:

       QUALCOMM POP v3.33 ready.

  ! Ǵµ!  ʹ ȣȭǴ Ʈũ  ְ ȴ.
  ϰ ȣȭ   ؽƮ   ̽  
  ȴ.

  3.   Ʈ  ϱ

     Ŭ̾Ʈ Ʈ ssh  Ʈ ϵ
  ϴ  Ѵ.  ֵ  fetchmail ( ̸尡 
  Ǹ α׷)  ߾.  fetchmail   ã ִ.

  http://www.tuxedo.org/~esr/fetchmail/.  , fetchmail  д
  ͵ ſ   ̴ٰ.

  3.1.  fetchmail ϱ

  ̰  .fetchmailrc ̴.

       ______________________________________________________________________
       defaults
               user msingh is manish
               no rewrite

       poll localhost with protocol pop3 and port 11110:
               preconnect "ssh -C -f msingh@popserver -L 11110:popserver:110 sleep 5"
               password foobar;
       ______________________________________________________________________

  ? fetchmail  ̿ܿ ǳ ɼ  , ⼭
  ߿  preconnect  poll ɼ̴.

  츮 POP   Ӿʰ   ȣƮ 11110 Ʈ
  Ѵ.  preconnect  ssh  ̸  ؼ ġ  Ʈ
   ϰ 5ʵ Ʈ  ´.  ġ  11110
  Ʈ Ͽ  ܾ ȴ.

  ׷ ġ Ҷ ,  ȣԷ ؾѴ.  
   ׶( ϴ ó) ϰ Ѵٸ, ̰
  ϹǷ,  ǿ ̰ ذ.

  3.2.   ڵȭ ϱ

  ssh      Ҽ ִ.  Ѱ RSA
  public/private key pair ̴.  ssh-keygen  Ű
   ִ.  Ű passphrase   , װ ϼ
  ִ.

    ӽ ϴٰ ȴٸ,  passpharase
  ض.  ׸   .fetchmailrc   ġ
   ϸ  ڵ ޾ƿü ִ.

  ׷,  passphrase ʿϴٰ ȴٸ,  .  ssh
   agent   Ǿ , Ű,  ssh  ̷
  ¿ ؾѴ. ׷    ũƮ ߴ.

  getmail.sh:

       ______________________________________________________________________
       #!/bin/sh
       ssh-add
       while true; do fetchmail --syslog --invisible; sleep 5m; done
       ______________________________________________________________________

    Ҷ,  Ѵ:

       $ ssh-agent getmail.sh

  ̰  passphrase ѹ ´. ׸,  5и 
  ýũϰ ȴ.   , ssh-agent  . ( ̰
  ip-up, ip-down ũƮ  ־.)

  3.3.  fetchmail  ʴ 

   ġ  ϰų ϱ ȴٸ?  Pine, Netscape
    Ŭ̾Ʈ ׵鸸 POP ī  ִ.
  ׷Ƿ, ġ  ض!     ̴.
  ׸  Ŭ̾Ʈ ׷  ۵ ؼ ʵȴ.  Pine 
  Netscape    ý ϱ    ִ.

  ׷, ̷ Ϸ   Ŭ̾Ʈ  Ʈ
  ӵǾ ֵ   ð ־ Ѵ (  sleep
  100000000  ).  ̰ ¼  Ʈũ ڰ 
   𸥴.

  ι°,  Ŭ̾Ʈ (ݽ԰ )  POP  Ʈ
  110 ϵ ڵǾ ִ. ̰ Ʈ  ش Ʈ 
  ؾ Ѵ.  ̰ ΰŸ ̱ ϳ, ۵ Ұ̴.

  4.  Ÿ

  4.1.  Disclaimer

     ڴ   ʴ´. ̰  ο
  ڿ ȴ.

  ssh   ȣȭ Ʈ  ѵ(  °)
  ӵ 𸥴.  鿡, ſ ׷ Ʈ
   㰡 ־ Ѵ.   ̷ 鿡   
  Ѵٸ,  ض.

    Ǵ      ι̴
     ִ. ڴ Ʈũ  /
   ʰ,    ϴ θ Ѵ.  
      ι̴  ǿ ݵǴ Ȯ
  ʴٸ  װͿ   ʿ䰡 ִ.

  4.2.  ۱

  Copyright  1998 Manish Singh <yosh@gimp.org>

  Permission is granted to make and distribute verbatim copies of this
  manual provided the copyright notice and this permission notice are
  preserved on all copies.

  Permission is granted to copy and distribute modified versions of this
  document under the conditions for verbatim copying, provided that this
  copyright notice is included exactly as in the original, and that the
  entire resulting derived work is distributed under the terms of a
  permission notice identical to this one.

  Permission is granted to copy and distribute translations of this
  document into another language, under the above conditions for
  modified versions.

  Commercial redistribution is allowed and encouraged; however, the
  author would like to be notified of any such distributions.

  All trademarks used in this document are acknowledged as being owned
  by their respective owners.

  4.3.  ֽ е

  ssh Ʈ   ˷ Seth David Schoen
  <schoen@uclink4.berkeley.edu> 帰.

