Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
All about SSH
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Thu Jan 20, 2005 4:30 pm    Post subject: All about SSH Reply with quote

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. :roll:

Regards,
pientra
_________________
Don't just stand there, kill him!
Back to top
View user's profile Send private message
vonhelmet
l33t
l33t


Joined: 06 Apr 2004
Posts: 770
Location: Somewhere in a school

PostPosted: Thu Jan 20, 2005 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Thu Jan 20, 2005 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Thu Jan 20, 2005 7:14 pm    Post subject: Reply with quote

Code:
emerge openssh
nano -w /etc/ssh/sshd_config
/etc/init.d/sshd start
rc-update add sshd default
Back to top
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Thu Jan 20, 2005 7:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Thu Jan 20, 2005 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Thu Jan 20, 2005 9:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
angoraspruce
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 193
Location: Minnesota, USA

PostPosted: Fri Jan 21, 2005 1:21 am    Post subject: Reply with quote

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
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Fri Jan 21, 2005 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
-rem(
n00b
n00b


Joined: 31 Oct 2004
Posts: 30
Location: France, Brest

PostPosted: Fri Jan 21, 2005 3:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Fri Jan 21, 2005 11:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
angoraspruce
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 193
Location: Minnesota, USA

PostPosted: Sat Jan 22, 2005 12:38 am    Post subject: Reply with quote

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
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Sat Jan 22, 2005 1:30 am    Post subject: Reply with quote

This guide is good;
http://gentoo-wiki.com/HOWTO_setup_a_home-server
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Sat Jan 22, 2005 11:15 am    Post subject: Reply with quote

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
View user's profile Send private message
goofus
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 180

PostPosted: Sat Jan 22, 2005 6:12 pm    Post subject: Reply with quote

i have ssh set up as mentioned in this thread with only keys. https://forums.gentoo.org/viewtopic.php?t=265935
its real good and easy.
Back to top
View user's profile Send private message
pientra
n00b
n00b


Joined: 06 Dec 2004
Posts: 71
Location: Denmark

PostPosted: Sun Jan 23, 2005 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum