10.07.2015 Views

Pine, IMAP, and SSH (SSH, The Secure Shell: The Definitive Gu...

Pine, IMAP, and SSH (SSH, The Secure Shell: The Definitive Gu...

Pine, IMAP, and SSH (SSH, The Secure Shell: The Definitive Gu...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Pine</strong>, <strong>IMAP</strong>, <strong>and</strong> <strong>SSH</strong> (<strong>SSH</strong>, <strong>The</strong> <strong>Secure</strong> <strong>Shell</strong>: <strong>The</strong> <strong>Definitive</strong> <strong>Gu</strong>ide)of 8http://www.hn.edu.cn/book/NetWork/NetworkingBookshelf_2ndEd/ssh...8/3/2005 2:16 PMRemote Usernames in <strong>Pine</strong>By the way, it's not mentioned in the <strong>Pine</strong> manpage or configuration file comments, but if youneed to specify a different username for connecting to a remote mailbox, the syntax is:{hostname/user=jane}mailboxThis causes <strong>Pine</strong> to call the rsh-comm<strong>and</strong> with "jane" as the remote username (i.e., the third%s substitution).Generally, you want to use an <strong>SSH</strong> authentication method that doesn't require typing a password orpassphrase, such as trusted-host or public-key with an agent. <strong>SSH</strong> is run behind the scenes by <strong>Pine</strong> <strong>and</strong>doesn't have access to the terminal to prompt you. If you're running the X Window System, ssh can pop upan X widget instead to get input, ssh-askpass, but you probably don't want that either. <strong>Pine</strong> may makeseveral separate <strong>IMAP</strong> connections in the course of reading your mail, even if it's all on the same server. Thisis just how the <strong>IMAP</strong> protocol works.With the previous settings in your ~/.pinerc file <strong>and</strong> the right kind of <strong>SSH</strong> authentication in place, you'reready to try <strong>Pine</strong> over <strong>SSH</strong>. Just start <strong>Pine</strong> <strong>and</strong> open your remote mailbox; if all goes well, it will openwithout prompting for a password.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!