Загрузка...

How to Connect to SSH with Username & Password on Mac

Save Password (avoid typing it every time)

You can use sshpass to auto-fill the password (install via Homebrew):
brew install sshpass

Then connect like:
sshpass -p 'your_password' ssh greelogix

Or add a shell alias to your ~/.zshrc or ~/.bash_profile:
alias greelogix="sshpass -p 'your_password' ssh myserver"

Then reload:
source ~/.zshrc

Now just type greelogix in your terminal to connect instantly.
abuzer@greelogix.com

Видео How to Connect to SSH with Username & Password on Mac канала ScienceSavvy
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять