mongodump --host localhost:27017 --username=user --password=password --db=db_name --authenticationDatabase=admin
cd ~/.ssh/
ssh-keygen -t ed25519 -C "project_name_deployment"
- Input a file path to save your SSH key pair to. Example
project_name_deployment_rsa - Enter a passphrase if you want. You can skip creating it by pressing
Entertwice. - Backup the key somewhere safe and secure
Expose localhost port 8000 to the internet
ssh -R 80:localhost:8000 serveo.nethttps://angular.io/guide/rx-library
- A
promisecan be subcribed. - It will give an
observable.
const secondsCounter = interval(1000);
secondsCounter.subscribe(n =>
console.log(`It's been ${n} seconds since subscribing!`));
All you need is your rsa key file
cp name_rsa ~/.ssh/
chmod 400 ~/.ssh/name_rsa
cat >> ~/.ssh/config <<EOF
Host dev.website.com my_connection_name
Hostname {server_ip_address}
User {username}export $(grep -v '^#' .env | xargs)
Show all opened ports
$ sudo firewall-cmd --list-allTo open up a new port (e.g., TCP/80) permanently, use these commands. Without --permanent flag, the firewall rule would not persist across reboots.
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --reload