# github.com
Host github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
# gitlab.com
Host gitlab.com
Preferredauthentications publickey
IdentityFile ~/.ssh/id_rsa
// old
# github.com
HostName github.com
User git
AddKeysToAgent yes
PubkeyAuthentication yes
IdentityFile ~/.ssh/id_rsa
PreferredAuthentications publickey
# Some site
Host some_server
Hostname 192.168.12.12
# gitLab.com
Host gitlab.com
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa
# git.codenetix.com
Host git.codenetix.com
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa
# github.com
Host github.com
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa
vim - edit files
|
||
---|---|---|
Редактирование файла |
// открыть файл в редакторе VIM
vim <filename>
// режим редактирования (i или Insert)
:w - save:w! - save readonly file:q - quit:wq - save and quit// посмотреть содержимое файла cat <filename>
|