Telegram- 👇 😉
-
. WIKIMERIONET
Merion Mertics , ,

CRM

4

SSH (Secure Shell) . , .

SSH - ( SSH ).

, SSH .

  SSH

:

  • sudo root
  • SSH

SSH. , SSH. , SSH, :

ls -al ~/.ssh/id_*.pub	

, , , , SSH. , , .


1. SSH

1. , , SSH , .

4096- . , . :

ssh-keygen -t rsa -b 4096 -C "your_email@domain.com"

2. , , Enter, .

3. . , . Enter, .

Passphrase

4. , , .

Fingerprint

5. , SSH, :

ls -al ~/.ssh/id_*.pub

, :


2.

SSH- ssh-copy-id cat.

1. ssh-copy-id

, .

1. ssh-copy-id:

ssh-copy-ide [remote_username]@[server_ip_address]

2. .ssh/authorized_keys.

2: cat

- cat.

1. .ssh.

ssh [remote_username]@[server_ip_address] mkdir -p .ssh

2. .

3. . , authorized_keys .ssh:

cat .ssh/id_rsa.pub | ssh [remote_username]@[server_ip_address] 'cat >> .ssh/authorized_keys'

3.

SSH .

, , :

ssh [remote_username]@[server_ip_address]

, .

: , SSH , SSH. bruteforce .

:

SSH . SSH.

, .

  • 700 .ssh.
  • 640 .ssh/authorized_keys.

:

ssh [remote_username]@[server_ip_address] "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

. , .


SSH, SSH . .