Jump to content
bc-vnt

Creare server SSH

Recommended Posts

Ce este SSH ?

Ca sa putem verifica starea serviciilor , logurilor si a altor task-uri putem folosii server-ul OpenSSH.

Cum procedam ?

a) Instalam clientul SSH .

sudo apt-get install openssh-client

B) Instalarea server-ului pe pc-ul tinta ( adica al tau )

sudo apt-get install openssh-server

Print1.png

Acum testam server-ul , sa vedem daca este pornit .

netstat -ant | grep 22

Ce este grep ?

sau :

ps -ef | grep ssh

Print3.png

Acum ca sa ne conectam la server-ul SSH .

ssh user@ip-calculator

sau:

ssh user@ip-server:port

Pentru a orpi server-ul SSH .

sudo /etc/init.d/ssh stop

P.S - Nu radeti de desktop-ul meu , asa retin comenzile mai repede .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...