LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   enabling ssh logins on debian (https://www.linuxquestions.org/questions/linux-software-2/enabling-ssh-logins-on-debian-277745/)

rjshirts 01-14-2005 11:30 AM

enabling ssh logins on debian
 
I have putty installed on my windows box, but everytime I try to login to my debian box (ip address of 10.10.0.234) I get a message stating that the connection was refused.
Am I missing something here? I installed the packages for logging in remotely, or at least I think I did. If it turns out I didn't (which is a very good possibility, where can I go to get the packages for sshd?
Thanks,
EDIT: Newbie moment.......
Ok, turns out I'm missing the gcc libraries, somehow I either didn't install them (again, not a big suprise) or something isn't right. I found out about this as I was trying to roll the new 2.6.10 kernel. I figured I might need those libraries if I'm going to have to install sshd or something like that.

twsnnva 01-14-2005 12:15 PM

To install sshd in debian.

Code:

apt-get install ssh
It'll ask if you want to run the sshd server.

To install gcc in debian
Code:

apt-get install gcc

Thomas

rjshirts 01-14-2005 12:28 PM

Thanks,
That was a lot easier than I thought it would be. Does this work for any distro? Suse, Slackware in particular?
Only one problem though. When I tried to install sshd, it couldn't find the package. How do I find the package online with wget or something similar?

twsnnva 01-14-2005 01:05 PM

Quote:

Does this work for any distro? Suse, Slackware in particular?
It works for Debian and most Debian based distro's (i.e. Knoppix, Ubuntu). Slack has a program called slapt-get and redhat has yum, they all basically do the same thing.
Quote:

When I tried to install sshd, it couldn't find the package.
sshd is installed when you install ssh. It then prompts you if you would like to run the sshd server. If you already installed ssh, you can run
Code:

dpkg-reconfigure ssh
This will reconfigure ssh and prompt you to run the sshd server.

Thomas

rjshirts 01-17-2005 06:14 PM

New question with apt-get:
I'm trying to install mysql, and I've found a .deb file at www.backports.org, but apt-get won't install it. Where do I go to add backports.org to my list of sites to get software from?

twsnnva 01-18-2005 01:12 PM

You would add that server to /etc/apt/sources.list. You can get mysql from debian though.
Code:

apt-get install mysql-server
If you download a .deb, you would need to install it with dpkg like so.
Code:

dpkg -i your_package.deb
Check out http://packages.debian.org Here you can search for packages.

Thomas

rjshirts 01-18-2005 02:24 PM

ok, here's my question: how do I add lines to the sources.list file? I tried typing in
but I get an error message when I try to run apt-get after that.

Thanks a million for all your help.

twsnnva 01-18-2005 02:29 PM

http://backports.org/installation.html

Also make sure you run apt-get update after editing /etc/apt/soruces.list.

Thomas

EL DEMONIO 09-12-2010 08:18 PM

Quote:

Originally Posted by twsnnva (Post 1408239)
To install sshd in debian.

Code:

apt-get install ssh
It'll ask if you want to run the sshd server.

To install gcc in debian
Code:

apt-get install gcc

Thomas

what;s the gcc for?

evo2 09-12-2010 08:40 PM

Quote:

Originally Posted by rjshirts (Post 1408263)
That was a lot easier than I thought it would be.

Debian sorted out package installation before most other distros existed.
While it's true that Slackware is a couple of months older some would argue that Slackware package installation has never been sorted out. However, that I believe, is a design choice not a bug as such.

Quote:

Does this work for any distro? Suse, Slackware in particular?
Something similar should work for Suse, but for Slackware you'd probably need to install the pacakges that sshd depends on yourself.

Quote:

Only one problem though. When I tried to install sshd, it couldn't find the package.
To be expected. Although it was a good guess, the package name is not "sshd".

Quote:

How do I find the package online with wget or something similar?
Use apt-cache and your best guess at what the program or package name could be.
Code:

apt-cache search sshd
This should return a few lines including:
Code:

openssh-server - secure shell (SSH) server, for secure access from remote machines
Cheers,

Evo2.

michaelk 09-12-2010 08:49 PM

evo2,
Do you realize this is a 5 year old thread?

evo2 09-12-2010 09:01 PM

Quote:

Originally Posted by michaelk (Post 4095602)
evo2,
Do you realize this is a 5 year old thread?

I do now!

Cheers,

Evo2.

RoninNL 11-11-2013 04:09 PM

Sweet, thanks! Stillll works ;)


All times are GMT -5. The time now is 09:38 PM.