Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

alias pc ubuntu ssh

Method 1 - Using SSH Config File
$ vi ~/.ssh/config  # 

Host webserver
    HostName 192.168.225.22
    User sk

$ ssh webserver


Method 2 - Using Bash aliases
Open ~/.bashrc or ~/.bash_profile file:
alias webserver='ssh sk@192.168.225.22'

Then, apply the changes using command:
$ source ~/.bashrc

$ webserver
Comment

PREVIOUS NEXT
Code Example
Shell :: wsl python image 
Shell :: bash command change time 
Shell :: What next after installing sanctum for laravel 
Shell :: openvpn client docker 
Shell :: permission terminal ubuntu 
Shell :: how to highlight code in github editor 
Shell :: git view entire log 
Shell :: heroku clone database local 
Shell :: install homebre windows 
Shell :: Check Firewall setup 
Shell :: shell add thousands separator in a number 
Shell :: append to multiple files bash 
Shell :: convert mp4 to hap 
Shell :: venv git 
Shell :: apt install edge 
Shell :: hadoop delete directory without url 
Shell :: show output after a keyword in shell script in a file 
Shell :: git fetch all after --single-branch 
Shell :: bash check if string does not exist in file 
Shell :: gcloud add role to service account 
Shell :: linux docker 
Shell :: vi replace 
Shell :: install gulp gulp-util exited with code 1 
Shell :: xargs 
Shell :: ansible skip tag 
Shell :: bash concatenate string variables 
Shell :: btop++ on ubuntu 
Shell :: docker run commands 
Shell :: change directory 
Shell :: git revert to last commit on remote branch 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =