View previous topic :: View next topic |
Author |
Message |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Thu Jan 20, 2005 4:30 pm Post subject: All about SSH |
|
|
I am thinking about buying an old computer and put Gentoo Linux on it with SSH. How do I set it up correctly? All I have to do is merging openssh and then start the SSH init.d script?
Can I still use SSH if I use DHCP or is IPv6 better?
I don't know much about this whole server term. I would appreciate if you perhaps could give me some links and tell how it works and how the best way to run a server is. And PLEASE in details.
Regards,
pientra _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
vonhelmet l33t

Joined: 06 Apr 2004 Posts: 770 Location: Somewhere in a school
|
Posted: Thu Jan 20, 2005 4:39 pm Post subject: |
|
|
Do you mean installing by connecting to the computer using SSH?
If so, then what you need to do is get the computers rigged on the same network, boot the livecd, run passwd to set the root password, load the module for your network card if necessary, run net_setup eth0 to setup the network connection, then run /etc/init.d/sshd start, then ssh into it from the other PC.
That's it in brief.
There's a bit about it in the alternative installation guide which provides extra info for special cases - like installing with SSH - and should be used in conjunction with the regular install guide. _________________ My blog
nvtuner software - enhance your AGP Geforce 6800 or 6200! |
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Thu Jan 20, 2005 4:42 pm Post subject: |
|
|
No, I mean when Gentoo Linux IS installed. And use the box as a server so I can SSH into it when I want.
Sorry. _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
WarMachine Apprentice

Joined: 15 Jul 2002 Posts: 181
|
Posted: Thu Jan 20, 2005 7:14 pm Post subject: |
|
|
Code: | emerge openssh
nano -w /etc/ssh/sshd_config
/etc/init.d/sshd start
rc-update add sshd default |
|
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Thu Jan 20, 2005 7:17 pm Post subject: |
|
|
WarMachine:
OKay great. But what should I edit in the configuration? Is it up to me? I can change whatever I feel like? _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
WarMachine Apprentice

Joined: 15 Jul 2002 Posts: 181
|
Posted: Thu Jan 20, 2005 7:23 pm Post subject: |
|
|
Of course it's up to you, it's your server.
However, I don't usually change too much besides making sure it's only using protocol 2 and disabling root logins. You will still be able to use root by logging in as another user and su'ing to root.
Other common changes to the default configuration are:
Forwarding X11 so X can be used remotely
Changing the connection port to something other than 22
You will have no conflict running dhcp (client or server) on your machine with ssh as long as you don't set them to use the same port. |
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Thu Jan 20, 2005 9:05 pm Post subject: |
|
|
OKay. I'll try that when I get the computer.
Also, could anybody give me some links about setting up a server. I know there's a billion kinds of different servers. But just a normal and regular fileserver or something. Just a storage server and maybe a CS server too. _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
angoraspruce Apprentice

Joined: 08 Jan 2005 Posts: 193 Location: Minnesota, USA
|
Posted: Fri Jan 21, 2005 1:21 am Post subject: |
|
|
pientra wrote: | Also, could anybody give me some links about setting up a server. |
For file sharing between linux boxes I use NFS, and for windows/linux file and printer sharing I use smbd (samba).
Best regards  |
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Fri Jan 21, 2005 2:38 pm Post subject: |
|
|
OKay thank you, I have found their website and I will now read some NFS docs. Thanks to all  _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
-rem( n00b


Joined: 31 Oct 2004 Posts: 30 Location: France, Brest
|
Posted: Fri Jan 21, 2005 3:36 pm Post subject: |
|
|
Yet, don't forget to install and configure iptables/ipconntrack, and I think gentoo is not the best choice for a server, but of course, it's still a linux box.
NFS is really great, but it could cause some trouble if the server crashes and files systems are stiill mounted on NFS clients. _________________ Linux Registered User #224740
Linux is friendly-user, it's just very selective about who its friends are. |
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Fri Jan 21, 2005 11:03 pm Post subject: |
|
|
What do you mean by trouble?
And do you suggest anything else than Gentoo?
FreeBSD? _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
angoraspruce Apprentice

Joined: 08 Jan 2005 Posts: 193 Location: Minnesota, USA
|
Posted: Sat Jan 22, 2005 12:38 am Post subject: |
|
|
pientra wrote: | What do you mean by trouble? |
Years ago NFS had a habit of occasionally causing some seriously annoying problems (like freezing a client), but my own experiences with it nowadays is nearly trouble free.
The other week my NFS server went down, and I suddenly wasn't able to cd into two of the mount-point directories on the client. I was "locked" out of the empty directory. Fortunately, all I had to do was 'umount <directory>' and all was well again.
Another mishap is that one of my clients was taking up to five minutes to mount a remote NFS directory. (Although once mounted, as far as I can tell, all seemed to work just fine thereafter.) The problem was that I hadn't launched '/sbin/rpc.portmap' on the client. Executing that solved the problem.
Best regards  |
|
Back to top |
|
 |
comprookie2000 Retired Dev


Joined: 25 Jul 2004 Posts: 925 Location: Sun City Center, Florida
|
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Sat Jan 22, 2005 11:15 am Post subject: |
|
|
comprookie2000:
Yes, really good!
I'll try it. Thanks.
angoraspruce:
OKay, not that big a deal. _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
goofus Apprentice

Joined: 19 Nov 2004 Posts: 180
|
|
Back to top |
|
 |
pientra n00b

Joined: 06 Dec 2004 Posts: 71 Location: Denmark
|
Posted: Sun Jan 23, 2005 11:51 am Post subject: |
|
|
Oh, cool thread. Useful, thanks. I think I have a basic knowlegde about SSH now. Thanks! _________________ Don't just stand there, kill him! |
|
Back to top |
|
 |
|