SSH and Linux

Discussion in 'OT Technology' started by Ameter, Jun 13, 2008.

  1. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    This should be a very simple question for those who know about Linux.

    I need to forward a port from my router so that I can SSH in from my work computer to my home computer, but I don't know which port to use.

    Also, if there are any services I need to start running, I'll need to know those too.

    The reason being, if anyone needs to know, is that the sysadmin at work hasn't been able to get AIPS working for a network, multi-user install, and my research can't proceed until I have AIPS working. So, for an interim solution, I've installed a single-user install on my home PC, but would like to be able to SSH into it from work if I need help/to show someone something, etc.

    Thanks in advance for the help.
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    forward port 22 tcp to your box and make sure sshd is running
     
  3. dorkultra

    dorkultra OT's resident crohns dude OT Supporter

    Joined:
    Oct 14, 2005
    Messages:
    22,756
    Likes Received:
    29
    Location:
    yinzer / nilbog, trollhio
    ssh = 22
    i hope you know that
     
  4. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    how do I check sshd?
     
  5. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    considering that putty is probably the most-common ssh client, and that it tells you every time it starts up that ssh is port 22, I'm shocked and appalled that this question is being asked.
     
  6. critter783

    critter783 OT Supporter

    Joined:
    Jul 15, 2005
    Messages:
    1,785
    Likes Received:
    0
    ps -a | grep ssh
     
  7. Limp_Brisket

    Limp_Brisket New Member

    Joined:
    Jan 2, 2006
    Messages:
    48,422
    Likes Received:
    0
    Location:
    Utah
    i'm glad people are able to ask simple questions here without c&p getting all self-righteous about computing... oh wait, they can't.
     
  8. dorkultra

    dorkultra OT's resident crohns dude OT Supporter

    Joined:
    Oct 14, 2005
    Messages:
    22,756
    Likes Received:
    29
    Location:
    yinzer / nilbog, trollhio
    it teaches you to search on your own before asking something simple
     
  9. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    i don't use putty obviously
     
  10. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    how's this for a novel idea: I'm not computer illiterate, however, I'm unfamiliar with Linux. I need to do a simple task, and may have questions.

    Which is better? Pick the brain of someone who knows, or google for answers and guess and test until it works?
     
  11. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    nothing, which I assume means not running. How do I start it?
     
  12. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    what distro?

    it is not installed by default in ubuntu, for example

    you would run:

    sudo apt-get install ssh
     
  13. Cthalupa

    Cthalupa New Member

    Joined:
    May 5, 2006
    Messages:
    46,930
    Likes Received:
    0
    Location:
    Dallas, Texas
    Just install ssh won't work on the new repositories (At least, it wouldn't for me the other day)

    sudo apt-get install openssh-server
     
  14. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    i just did a 8.04 install a few days ago and I think the command I posted is what I used. With 7.10 and prior it was openssh-server, iirc.
     
  15. Ameter

    Ameter Active Member

    Joined:
    Mar 31, 2005
    Messages:
    97,795
    Likes Received:
    1
    Location:
    Calgary, AB
    I'm running Fedora Core 8
     
  16. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    yum install openssh-server
    /etc/init.d/sshd start
     
  17. Cthalupa

    Cthalupa New Member

    Joined:
    May 5, 2006
    Messages:
    46,930
    Likes Received:
    0
    Location:
    Dallas, Texas
    Weird. I did 8.04 as well, and could have sworn I had to do openssh-server.

    I might be going insane, though.

    x86 or x86-64?
     
  18. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    x86.

    I think openssh-server is the actual package, but ssh is probably an alias for it. I just tested it and sure-enough "sudo apt-get install ssh" does work.

    it appears the ssh alias includes 55 packages. :o

    Code:
    [email protected]:/var/www/Kiosk$ sudo apt-get install ssh
    [sudo] password for p07r0457:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    ssh is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
    [email protected]:/var/www/Kiosk$
     
  19. Cthalupa

    Cthalupa New Member

    Joined:
    May 5, 2006
    Messages:
    46,930
    Likes Received:
    0
    Location:
    Dallas, Texas
    64 for me. I could have sworn just ssh didn't work

    Now I've gotta boot up vmware and find out :o
     
  20. Cthalupa

    Cthalupa New Member

    Joined:
    May 5, 2006
    Messages:
    46,930
    Likes Received:
    0
    Location:
    Dallas, Texas
    Uh, that's interesting.

    Code:
    [email protected]:/$ sudo apt-get install ssh
    [sudo] password for cthalupa:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      ssh
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 1084B of archives.
    After this operation, 32.8kB of additional disk space will be used.
    Get:1 http://mx.archive.ubuntu.com hardy-updates/main ssh 1:4.7p1-8ubuntu1.2 [1084B]
    Fetched 1084B in 0s (2526B/s)
    Selecting previously deselected package ssh.
    (Reading database ... 112168 files and directories currently installed.)
    Unpacking ssh (from .../ssh_1%3a4.7p1-8ubuntu1.2_all.deb) ...
    Setting up ssh (1:4.7p1-8ubuntu1.2) ...
    
    I'm pretty sure that since I, well, connected to this computer through SSH, I already had it installed.
     
  21. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    it was a package from the hardy-updates repository.... just an update :h5:

    but that proves "sudo apt-get install ssh" works :wiggle: I think it's easier to remember.
     
  22. Cthalupa

    Cthalupa New Member

    Joined:
    May 5, 2006
    Messages:
    46,930
    Likes Received:
    0
    Location:
    Dallas, Texas
    Doh. Got sidetracked by the big capitalized NEW, and didn't pay attention to the repository :o

    Yep. I probably tried to use install sshd or something the other day instead.
     
  23. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    google://ssh port

    You fucking tard
     
  24. Vito_Corleone

    Vito_Corleone New Member

    Joined:
    Oct 12, 2003
    Messages:
    29,356
    Likes Received:
    0
    Location:
    Tampa, FL
    I would change the port. You will be scanned constantly, using the default port could be a bad idea.
     
  25. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    I generally recommend against changing the port.
     

Share This Page