ubuntu remote connection 22 port

Remote connection to Linux (Ubuntu configures SSH service) port 22

Install OpenSSH

Ubuntu does not install SSH Server by default, use the following command to install:

sudo apt-get install openssh-server openssh-client

But Ubuntu has installed ssh client by default.

Restart after configuration:
sudo /etc/init.d/ssh restart

Windows client connects command shell mode with putty

1、 Initial installation dependencies###

sudo apt-get install git vim openssh build-essential libssh-dev wget curl

2、 Install nvm nodejs version management###

https://github.com/creationix/nvm/blob/master/README.md

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

or

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

3、 Disable the built-in Apache service###

sudo service apache2 stop

update-rc.d -f apache2 remove

sudo apt-get remove apache2

4、 Upgrade package list###

sudo apt-get update

5、 Install nginx

sudo apt-get install nginx

nginx -v   #View nginx version

6、 Modify nginx configuration###

cd /etc/nginx/conf.d

sudo vi www-angular-site.conf

upstream www {
 server 127.0.0.1:3000;}

server{
 listen 80;
 server_name www.angular.site;

location /{
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
 proxy_set_header Host $http_host;
 proxy_set_header X-Nginx-Porxy true;
 proxy_pass http://www;
 proxy_redirect off;}}

Restart nginx

nginx restart 

7、 Install yarn vue-cli pm2

8、 Install mongodb database###

mongodb configuration file path

vi /etc/mongod.conf

Start mongodb

sudo service mongod start

Recommended Posts

ubuntu remote connection 22 port
Remote connection to Ubuntu 19.1
Windows remote connection to Ubuntu 16.4 desktop
Ubuntu ssh-keygen remote login
ubuntu open designated port
Ubuntu Server Chapter 7 Remote Management
ubuntu 16.10 supports ssh remote access
Kali(Ubuntu) MySQL virtual machine remote connection
MySQL connected to remote Ubuntu server
Obtain Root permission when remote Ubuntu system