Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

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 Setup ng OpenSSH Server sa Ubuntu Linux

Setting up an SSH server on Ubuntu is about as simple as it gets. Pagse-set up ng isang SSH server sa Ubuntu ay tungkol sa simple hangga't ito gets. The server of choice is OpenSSH. Ang server ng pagpili ay OpenSSH.

Run this command from a terminal window: Patakbuhin ang command na ito mula sa isang terminal window:

sudo apt-get install ssh sudo APT-i-install ang makakuha ng ssh

To test that it's working, you can try to ssh into your own machine: Upang sa pagsubok na ito ay gumagana, maaari mong subukan sa ssh sa iyong sariling makina:

> ssh localhost > Ssh localhost

The authenticity of host 'localhost (127.0.0.1)' can't be established. Ang pagiging tunay ng localhost host '(127.0.0.1)' ay hindi maaaring itinatag.
RSA key fingerprint is 98:8a:b8:b2:9e:8a:84:e0:d4:08:27:fb:74:f0:de:d4. RSA key tatak ng daliri ay 98:8 a: b8: b2: 9e: 8a: 84: e0: d4: 08:27: fb: 74: f0: de: d4.
Are you sure you want to continue connecting (yes/no)? Sigurado ka bang gusto mong magpatuloy pagkonekta (oo / hindi)?

Looks like it's working! Mukhang ito ay nagtatrabaho! Naturally our ssh client doesn't have the key for the server, since we just installed it. Naturally aming ssh client ay hindi may ang susi para sa server, since kami lang ang naka-install na ito. You can type yes to continue or just hit Ctrl-C to stop. Maaari kang mag-type yes upang magpatuloy o pindutin lamang ang Ctrl-C upang ihinto.

This article was originally written on 09/17/06 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 09/17/06 Tagged with: Adding Software Pagdaragdag ng Software , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (10) Comments (10)

  1. ernest Ernest

    thanks for your handy 'how-to' =). salamat para sa iyong mga madaling-gamiting 'kung-paano na' =).

  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? Puwede kang magbigay sa amin ng isang noobs ng kaunti sa karagdagang impormasyon sa pag-set up ang isang SSH server sa Ubuntu 8.10? I appreciate the tutorial but I have no idea what to do next. Ikinalulugod ko ang tutorial ngunit Wala akong ideya kung ano ang gagawin sa susunod. How do I create a key? Paano ako makakalikha ng isang susi? If I generated a SSH key with Seahorse can you tell me how to get the SSH server to use it? Kung ako ay nakabuo ng isang SSH susi sa mga kabayo-kabayohan maaari mong sabihin sa akin kung paano makakuha ng SSH server gamitin ito? How do I create a users list that can access the SSH server? Paano ako lilikha ng isang listahan ng mga gumagamit na maaaring ma-access ang SSH server?

  3. pete pete

    Is that it? Ay na ito?

  4. Markus Markus

    Hi, I did that but get the following error: Hi, ako ay na ngunit kumuha ang mga sumusunod na error:
    Reading package lists…done Binabasa ang listahan ng pakete ... tapos na
    Building dependency tree Building dependency puno
    Reading state information… Done Pagbabasa ng estado impormasyon ... Tapos na
    Package ssh s not available, but is referred to by another package. Padala ssh s ay hindi magagamit, ngunit ito ay tinutukoy ng ibang pakete.
    This may mean that the package is missing, has been ovsoleted, or is only available from another source Ito ay maaaring mangahulugan na ang pakete ay nawawala, ay ovsoleted, o ay magagamit lamang mula sa ibang pinagmulan
    However the following packages replace it: openssh -client ssh-askpass-gnome Subalit ang mga sumusunod na mga pakete palitan ito: openssh-client ssh-askpass-lamang-lupa
    E: Package ssh has no installation candidate E: Package ssh ay walang pag-install kandidato

    I just installed ubuntu 8.10 Ko na lang na naka-install Ubuntu 8.10

  5. Troy Troy

    Hello Markus, Hello Markus,

    ssh's name has been changed to openssh. pangalan ng ssh's ay nabago na sa openssh. Simply type: sudo apt-get install openssh I-type: sudo APT-i-install ang makakuha ng openssh

  6. John Juan

    Works for Ubuntu 9.04, but I'm like pete. Mga gawain para sa Ubuntu 9.04, pero ako gusto pete. Is that it? Ay na ito?

  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! Hindi ko naniniwala maaaring ito na ang mga simpleng, pagkatapos ng paggasta sa lahat ng gabi ay sinusubukan upang makagawa ng isang koneksyon, kung hindi, ang paglikha ng TLS sertipiko ng iba pa, kung hindi, at pagkatapos ay biglang realising na ako ay hindi maipasa port 22 sa aking router - naiintindihan na ito tunay ay ang simpleng!

    Well, almost. Well, halos. Here's what you really need to do: Narito ang kung ano ang talagang kailangan na gawin:
    1) completely remove any ftp software you already have installed 1) ganap na alisin ang anumang ftp software na mayroon ka na naka-install
    2) forward port 22 on ur router 2) pasulong port 22 sa ur router
    3) install OpenSSH – sudo apt-get install openssh-server 3) i-install ang OpenSSH - sudo APT-i-install ang makakuha ng openssh server -
    ** optional (but recommended):- ** Opsyonal (ngunit inirerekomenda): --
    4) create a new user on your computer (server) and set their home directory & password 4) gumawa ng isang bagong user sa iyong computer (server) at itakda ang kanilang mga tahanan na direktoryo & password
    5) connect to the server with SFTP (FileZilla) with the username and password you created and ensure that you have select SFTP option 5) kumonekta sa server na may SFTP (filezilla) gamit ang username at password na iyong nilikha at siguraduhin na mayroon kang piliin ang opsyon na SFTP

    yes, its a 5 minute job….not 3 hours like i spent yes, ang isang 5 minuto ng trabaho .... hindi 3 mga oras na gusto ko na ginastos sa

  8. rantom user rantom user

    Hi Recently i friend of mine installed the brand new version of ubuntu on her desktop. Hi Kamakailan lamang ako kaibigan ng mga mina-install ang bagong bersyon ng Ubuntu sa kanyang desktop. 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. Ako naka-install na openssh-client at server na ito sa makina, at pagkatapos ay i did ang loop test (ssh localhost) upang makita kung ang mga ito gumagana, yes ito nakapasa sa pagsubok. However, when i tried to ssh to another machine it didn't work. Subalit, kapag ako tried sa ssh sa ibang machine na hindi ito ang trabaho. 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. Pagkatapos ako ay nagpasya na mag-aplay ang parehong mga setting ng ssh_config na ako sa aking laptop Ubuntu sa pag-install na kung saan ako malaman na ssh ay gumagana. Even this trick didn't fix the problem. Kahit sa bilis ng kamay na ito ay hindi maayos ang problema.
    I am totally confused. Ako ay lubos na naguguluhan.
    ANY IDEAS? ANUMANG ideya?
    Thanks beforehand. Salamat muna.

  9. yo yo

    rantom user: rantom user:

    sudo apt-get install openssh-client sudo APT-i-install ang makakuha ng openssh-client

  10. worldsayshi worldsayshi

    I've just set up a ssh server at home, behind a router. Lamang ako na na-set up ng isang ssh server sa bahay, sa likod ng isang router. Within the local network it works great. Sa loob ng network ng mga lokal na ito gumagana malaki. But I'm unsure what is needed to make it work from outside. Subalit ako sigurado sa kung ano ang kinakailangan upang gawin itong trabaho mula sa labas. 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. Sa tingin ko ko na pinamamahalaang upang isulong ang port sa pamamagitan ng router bagaman hindi ako sigurado kung paano pagsubok na aking ginawa ito ng tama. Haven't been able to connect from the outside yet though. Ay hindi pa maka-konekta mula sa labas pa kahit na. Do I need to adress the specific port? Kailangan ko bang i-address ang mga tiyak na port?

    That is: Iyon ay:

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

    Is there anything else to think about when connecting through a router? Mayroon bang anumang iba pang mag-isip tungkol sa kapag nag-connect sa pamamagitan ng isang router?

    /thanks / thanks


Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
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.