Oct. 27th, 2009

Реализацию "heirloom-mailx", выбранную для проекта Uniweb, программы mailx(1), специфицируемой POSIX, удобно использовать на рабочем столе Ubuntu при работе с командной строкой, если конфигурация (файл ~/.mailrc) подобна следующей:
alias john "John Smith <john.smith@jsinc.com>"
alias tommy "Tommy The Programmer <tommy@supergnu.org>"
alias uniweb john tommy

set MBOX=~/.mbox
set from="Incognito <incognito.uniweb@gmail.com>"
set folder=imaps://incognito.uniweb@gmail.com@imap.gmail.com
set password-incognito.uniweb@gmail.com@imap.gmail.com=topsecret
set record=~/.mbox
set smtp=smtps://smtp.gmail.com
set smtp-auth-user=incognito.uniweb@gmail.com
set smtp-auth-password=topsecret
set ssl-verify=ignore
SSH configuration allows a user to introduce aliases for user@host names both for ssh(1) and scp(1). In order to do that, the ~/.ssh/config file can be appended by the lines similar to the following:
Host js
HostName jsinc.com
User john

Host tom
HostName tommy.supergnu.org
User tommy
This way, to copy a file /tmp/xml to John's machine as John himself, and then log in Tommy's host using the name `some1' (not the default user name `tommy'), one could just type `scp /tmp/xml js:/tmp', then `ssh some1@tom'.

Profile

Anton Salikhmetov

November 2018

S M T W T F S
    123
45678 910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 9th, 2025 02:46 am
Powered by Dreamwidth Studios