Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Setup OpenSSH Server on Ubuntu Linux OpenSSH Server Setup na Ubuntu Linux

Setting up an SSH server on Ubuntu is about as simple as it gets. Priprava SSH strežnik na Ubuntu je približno tako enostavno, kot to gets. The server of choice is OpenSSH. Strežnik izbire se OpenSSH.

Run this command from a terminal window: Zaženi ta ukaz iz terminalsko okno:

sudo apt-get install ssh sudo apt-get install ssh

To test that it's working, you can try to ssh into your own machine: Če želite preskusiti, da je to delovalo, lahko poskusite ssh v svoj stroj:

> ssh localhost > Ssh localhost

The authenticity of host 'localhost (127.0.0.1)' can't be established. Verodostojnosti gostiteljice "localhost (127.0.0.1) 'ni mogoče ugotoviti.
RSA key fingerprint is 98:8a:b8:b2:9e:8a:84:e0:d4:08:27:fb:74:f0:de:d4. RSA ključ prstnih odtisov, je 98:8: B8: B2: 9e: 8a: 84: E0: D4: 08:27: FB: 74: f0: de: D4.
Are you sure you want to continue connecting (yes/no)? Ali ste prepričani, da želite nadaljevati povezovalne (da / ne)?

Looks like it's working! Zgleda, da je to delovalo! Naturally our ssh client doesn't have the key for the server, since we just installed it. Seveda naša ssh odjemalec nima ključa za strežnik, saj smo šele umestiti to. You can type yes to continue or just hit Ctrl-C to stop. Lahko vnesete da še naprej ali pa samo hit Ctrl-C za ustavitev.

This article was originally written on 09/17/06 Tagged with: Ta članek je bil prvotno napisan na 09/17/06 Tagged with: Adding Software Dodajanje Software , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (11) Komentarji (11)

  1. ernest Ernest

    thanks for your handy 'how-to' =). hvala za vaš priročen "kako-do" =).

  2. Kendall Brown Kendall Brown

    Could you give us a noobs a little more information on setting up an SSH server on Ubuntu 8.10? Bi nam noobs malo več informacij o vzpostavitvi SSH strežnik na Ubuntu 8,10? I appreciate the tutorial but I have no idea what to do next. Cenim tutorial ampak jaz nimam pojma, kaj storiti naslednje. How do I create a key? Kako ustvarim ključ? If I generated a SSH key with Seahorse can you tell me how to get the SSH server to use it? Če sem ustvarila SSH ključ z Morski Konjic mi lahko poveš kako priti SSH strežnik uporabljati? How do I create a users list that can access the SSH server? Kako ustvarim seznam uporabnikov, ki lahko dostopajo do strežnika SSH?

  3. pete Pete

    Is that it? Je to to?

  4. Markus Markus

    Hi, I did that but get the following error: Halo, sem storil to, ampak dobil naslednje napake:
    Reading package lists…done Reading package lists ... opravljeno
    Building dependency tree Gradnja drevesa odvisnosti
    Reading state information… Done Reading informacij o stanju ... Done
    Package ssh s not available, but is referred to by another package. Paket ssh ni na voljo, vendar je iz drugega paketa.
    This may mean that the package is missing, has been ovsoleted, or is only available from another source To lahko pomeni, da paket manjka, je bila ovsoleted, ali je na voljo samo iz drugega vira
    However the following packages replace it: openssh -client ssh-askpass-gnome Vendar pa naslednje embalaže nadomesti: openssh-client ssh-askpass-gnome
    E: Package ssh has no installation candidate E: Paket ssh nima umestitev kandidatk

    I just installed ubuntu 8.10 Pravkar sem nameščen ubuntu 8,10

  5. Troy Troy

    Hello Markus, Pozdravljeni Markus,

    ssh's name has been changed to openssh. ssh ime se je spremenilo v openssh. Simply type: sudo apt-get install openssh Preprosto tip: sudo apt-get install openssh

  6. John John

    Works for Ubuntu 9.04, but I'm like pete. Dela za Ubuntu 9,04, vendar sem kot pete. Is that it? Je to to?

  7. pavsid pavsid

    I didn't believe it could be that simple, after spending all night trying to make a connection, failing, creating TLS certificates etc, failing, and then suddenly realising that i hadn't forwarded port 22 on my router – understood that it really is that simple! Nisem mogla verjeti, da lahko tako preprosto, po porabi vso noč poskušali narediti povezavo, v nasprotnem primeru, ustvarjanje TLS certifikati itd, v nasprotnem primeru, in nato nenadoma zavedajoč se, da jaz ne bi posredoval vrata 22 naprej svoj stružnica - se razume, da je res je, da preprosto!

    Well, almost. No, skoraj. Here's what you really need to do: Vsepovsod 'kakšen vi pošteno potreba storiti:
    1) completely remove any ftp software you already have installed 1) v celoti odstraniti vse ftp programsko opremo že imate nameščen
    2) forward port 22 on ur router 2) pošlje na vrata 22 ur usmerjevalnika
    3) install OpenSSH – sudo apt-get install openssh-server 3) namestite OpenSSH - sudo apt-get install openssh-server
    ** optional (but recommended):- ** Neobvezno (vendar priporočamo): --
    4) create a new user on your computer (server) and set their home directory & password 4) ustvarite novega uporabnika na vašem računalniku (strežnik) in nastavite svoj dom directory in geslo
    5) connect to the server with SFTP (FileZilla) with the username and password you created and ensure that you have select SFTP option 5) povezati s strežnikom SFTP (FileZilla) z uporabniškim imenom in geslom, ki ste ga ustvarili, in zagotoviti, da imate možnost izbrati SFTP

    yes, its a 5 minute job….not 3 hours like i spent yes, njegovih 5 minutni .... ne 3 ure, kot sem preživel

  8. rantom user rantom uporabnik

    Hi Recently i friend of mine installed the brand new version of ubuntu on her desktop. Hi Pred kratkim sem moj prijatelj namestili povsem novo različico ubuntu na svoj pult. I installed openssh-client and server on this machine, and then i did the loop test (ssh localhost) to see if it works, yes it passed the test. Namestil sem openssh-odjemalec in strežnik na tem računalniku, nato pa sem storil zanke test (ssh localhost), da vidim, če deluje, da je prestala preskus. However, when i tried to ssh to another machine it didn't work. Vendar, če si se potrudil, da ssh na drugo stroj pa ni deloval. Afterwards i decided to apply the same ssh_config settings that i have in my laptop ubuntu installation where i know that ssh is working. Potem sem se odločil, da uporabljajo ista ssh_config nastavitve, da imam v svoj laptop ubuntu napravo, kjer vem, da je ssh deluje. Even this trick didn't fix the problem. Tudi ta trik ni pritrditi naloga.
    I am totally confused. Jaz sem popolnoma zmeden.
    ANY IDEAS? ANY IDEAS?
    Thanks beforehand. Hvala vnaprej.

  9. yo yo

    rantom user: rantom uporabnik:

    sudo apt-get install openssh-client sudo apt-get install openssh-client

  10. worldsayshi worldsayshi

    I've just set up a ssh server at home, behind a router. Sem ravnokar ustanovila ssh strežnik doma, zadaj usmerjevalnik. Within the local network it works great. V lokalnem omrežju to tovarna velik. But I'm unsure what is needed to make it work from outside. Ampak jaz sem negotov, kaj je potrebno, da bi to delo od zunaj. I think I've managed to forward the port through the router although I'm not sure how to test that I made it right. Mislim, da sem uspel naj pristanišča preko usmerjevalnika, čeprav ne vem, kako je mogoče preveriti, da sem se prav. Haven't been able to connect from the outside yet though. Ali ni uspelo povezati od zunaj, čeprav še ni. Do I need to adress the specific port? Ali moram za obravnavo posebnih vrata?

    That is: To je:

    ssh [myglobalip]:22 ssh [myglobalip]: 22

    Is there anything else to think about when connecting through a router? Je še kaj razmišljati o tem, kdaj povezovanju prek usmerjevalnika?

    /thanks / hvala

  11. Matthew Miller Matthew Miller

    Better than just blindly accepting the key as good, verify the fingerprint. Boljše kot samo slepo sprejemajo ključne kot dobro, preveri prstni odtis. Run: Run:

    sudo ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub sudo ssh-keygen-l-f / etc / ssh / ssh_host_rsa_key.pub

    on the server (in this case, localhost). na strežniku (v tem primeru, localhost). In this example, it's not so important, but it's good to ask for this from the sysadmin of remote systems you might connect to (or to provide it to your own users). V tem primeru to ni tako pomembno, vendar je dobro, da zaprosijo za to od sysadmin oddaljenih sistemov si lahko povežete z (ali zagotoviti, da svoje uporabnike). That way, you know the initial connection isn't subject to a man-in-the-middle attack. Na ta način, saj veš prvo priključitev ne velja človek-v-sredini napada.


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.