Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet347/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   343   344   345   346   347   348   349   350   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 264 
]
The 
ss
 command allows us to view a list of processes running on our server that are 
listening for connections. It will also display which port a process is listening on. 
We'll explore this command in more detail in 
Chapter 21

Securing Your Server
. But for 
now, this command should produce an output similar to the following:
Figure 10.7: Checking if the required port for SSH is listening
If, for some reason, your server doesn't show that it has an SSH server listening, 
double-check that you've started the daemon. By default, the SSH server listens for 
connections on port 
22
. This can be changed by modifying the port declaration in 
the 
/etc/ssh/sshd_config
 file, but that's a story for a later chapter. While I won't 
be going over the 
editing of this file just yet, just take note that it's the default 
configuration file for the daemon. OpenSSH reads this file for configuration values 
each time it's started or restarted.
To connect to a server using SSH, simply execute the 
ssh
 command followed by the 
name or IP address of the server you'd like to connect to:
ssh 192.168.1.120 
By default, the 
ssh
 command will use the username you're currently logged in with 
for the connection. If you'd like to use a different username, specify it with the 
ssh
 
command by including your username followed by the 
@
 symbol just before the IP 
address or hostname:
ssh fmulder@ 192.168.1.120
Unless you tell it otherwise, the 
ssh
 command assumes that your target is listening 
on port 
22
. If it isn't, you can give the command a different port with the 
-p
 option 
followed by a port number:
ssh -p 2242 fmulder@ 192.168.1.120
Once you're connected to the target machine, you'll be able to run shell commands 
and administer the system as if you were right in front of it. You'll have all the same 
permissions as the user you've logged in with, and you'll also be able to use 
sudo
 to 
run administrative commands if you normally have access to do so on that server.


Chapter 10

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   343   344   345   346   347   348   349   350   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish