Jump to content

ok, to preface this, im a complete noob to linux and server stuff. i just started openssh today on ubuntu. i eventually plan to give access of this server to some of my friends, but when i log in, i can still access the file system. im logging in with the private key through putty on a windows machine, but am i supposed to give people the private or public key? and is there a way to limit what people can access through the ssh connection?

Altair - Firestrike: http://www.3dmark.com/3dm/13945459

CPU:  i7-4790 @ 3.6 GHz Motherboard: Gigabyte B85M-DS3H-A RAM: 16GB @ 1600MHz CL11 GPU: XFX RX 470 RS Storage: ADATA SP550 240GB | WD Blue 1TB | Toshiba 2TB PSU: EVGA B2 750W Case: Phanteks Enthoo Pro Fans: Phanteks PH-F200SP (Front) | Phanteks PH-F140SP (Rear) | Noctua NF-A15 (Top)

Mouse: Logitech G502 | Keyboard: Corsair K70 MX Brown | Audio: Sennheiser HD 558

Link to comment
https://linustechtips.com/topic/620969-disable-file-system-access-on-openssh-server/
Share on other sites

Link to post
Share on other sites

By default, the key pair that is generated is for one user on the system. You can create users on the server that you can then assign to a user group. From there you can limit what the group can access through permissions. Keep in mind that you will want to generate a key pair for each user individually, that way one user can't log in as another user.

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to post
Share on other sites

You should checkout this thread to learn more about setting up a Linux server. The thread is specifically about Debian but most of the base commands are the same. 

 

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to post
Share on other sites

3 minutes ago, DeadEyePsycho said:

By default, the key pair that is generated is for one user on the system. You can create users on the server that you can then assign to a user group. From there you can limit what the group can access through permissions. Keep in mind that you will want to generate a key pair for each user individually, that way one user can't log in as another user.

so would i need a different user account for each person on the host, because the goal of this isnt to access files on the server but just to reroute and encrypt traffic

Altair - Firestrike: http://www.3dmark.com/3dm/13945459

CPU:  i7-4790 @ 3.6 GHz Motherboard: Gigabyte B85M-DS3H-A RAM: 16GB @ 1600MHz CL11 GPU: XFX RX 470 RS Storage: ADATA SP550 240GB | WD Blue 1TB | Toshiba 2TB PSU: EVGA B2 750W Case: Phanteks Enthoo Pro Fans: Phanteks PH-F200SP (Front) | Phanteks PH-F140SP (Rear) | Noctua NF-A15 (Top)

Mouse: Logitech G502 | Keyboard: Corsair K70 MX Brown | Audio: Sennheiser HD 558

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×