Add your custom tagline here.

How to Configure SFTP Server with Chroot in Debian 10

SFTP stands for Secure File Transfer Protocol, it is one of the most common method which is used to transfer files securely over ssh from our local system to remote server and vice-versa. The main advantage of sftp is that we don’t need to install any additional package except ‘openssh-server’, in most of the Linux distributions ‘openssh-server’ package is the part of default installation. Other benefit of sftp is that we can allow user to use sftp only not ssh.

Configure-sftp-debian10

Recently Debian 10, Code name ‘Buster’ has been released, in this article we will demonstrate how to configure sftp with Chroot ‘Jail’ like environment in Debian 10 System. Here Chroot Jail like environment means that User’s can go beyond from their respective home directories or users cannot change directories from their home directories.  Following are the lab details:

  • OS = Debian 10
  • IP Address = 192.168.56.151

Let’s jump into SFTP Configuration Steps,

Step:1) Create a Group for sftp using groupadd command

Open the terminal, create a group with a name “sftp_users” using below groupadd command,

[email protected]:~# groupadd sftp_users

Step:2) Add Users to Group ‘sftp_users’ and set permissions

In case you want to create new user and want to add that user to ‘sftp_users’ group, then run the following command,

Syntax: #  useradd -m -G sftp_users <user_name>

Let’s suppose user name is ’Jonathan’

[email protected]:~# useradd -m -G sftp_users jonathan

set the password using following chpasswd command,

[email protected]:~# echo "jonathan:<enter_password>" | chpasswd

In case you want to add existing users to ‘sftp_users’ group then run beneath usermod command, let’s suppose already existing user name is ‘chris’

[email protected]:~# usermod -G sftp_users chris

Now set the required permissions on Users,

[email protected]:~# chown root /home/jonathan /home/chris/

Create an upload folder in both the user’s home directory and set the correct ownership,

[email protected]:~# mkdir /home/jonathan/upload
[email protected]:~# mkdir /home/chris/upload
[email protected]:~# chown jonathan /home/jonathan/upload
[email protected]:~# chown chris /home/chris/upload

Note: In upload folder, user like Jonathan and Chris can upload files and directories from their local system .

Step:3) Edit sftp configuration file (/etc/ssh/sshd_config)

As we have already stated that sftp operations are done over the ssh, so it’s configuration file is “/etc/ssh/sshd_config“, Before making any changes I would suggest first take the backup and then edit this file and add the following content,

[email protected]:~# cp /etc/ssh/sshd_config /etc/ssh/sshd_config-org
[email protected]:~# vim /etc/ssh/sshd_config
………
#Subsystem      sftp    /usr/lib/openssh/sftp-server
Subsystem       sftp    internal-sftp

Match Group sftp_users
  X11Forwarding no
  AllowTcpForwarding no
  ChrootDirectory %h
  ForceCommand internal-sftp
…………

Save & exit the file.

To make above changes into the affect, restart ssh service using following systemctl command

[email protected]:~# systemctl restart sshd

In above ‘sshd_config’ file we have commented out the line which starts with “Subsystem” and added new entry “Subsystem       sftp    internal-sftp” and new lines like,

Match Group sftp_users”  –> It means if a user is a part of ‘sftp_users’ group then apply rules which are mentioned below to this entry.

ChrootDierctory %h” –> It means users can only change directories within their respective home directories, they cannot go beyond their home directories, or in other words we can users are not permitted to change directories, they will get jai like environment within their directories and can’t access any other user’s and system’s directories.

ForceCommand internal-sftp” …

0
Read More

Borderlands 3 The Anvil Crew Challenges Guide

Borderlands 3 The Anvil Crew Challenges Guide
The Anvil is another challenge area you will come across in Borderlands 3. Finding all the challenge targets can be a pain if you don’t know where to look. Check out this Borderlands 3 The Anvil Crew Challenges guide to find them all.

Borderlands 3 The Anvil Crew Challenges Guide

Crimson Radio 1
The first Crimson Radio is found here on the map. You are going to have to climb the containers all the way to the top to get the the radio.

Crimson Radio 1 The Anvil Borderlands 3

Crimson Radio 2
The second radio is found here on the map. Use the slab of concrete to jump onto the tower and climb it from there. Hold the jump button to make sure you climb ledges.

Crimson Radio 2 The Anvil Borderlands 3

Dead Claptrap 1
The first Dead Claptrap is found here on the map.

Dead Claptrap 1 The Anvil Borderlands 3

Dead Claptrap 2
The second Dead Claptrap can be found here on the map.

Dead Claptrap 2 The Avnil Borderlands 3

Target Of Opportunity
The kill target is found here on the map.

Target of opportunity The Anvil Borderlands 3

Typhon Dead Drop
Item inner text here
Typhon Logs
The first log is found very early in The Anvil.

Typhon Log 1 The Anvil Borderlands 3

The second one is found here in the tunnel on the map.

Typhon Log 2 The Anvil Borderlands 3

Check back soon for updates.

Borderlands 3 The Anvil Crew Challenges Guide

The Anvil is another challenge area you will come across in Borderlands 3. Finding all the challenge targets can be a pain if you don’t know where to look. Check out this Borderlands 3 The Anvil Crew

Borderlands 3 Eden 6 Side Quest Guide

Eden 6 is another large area with plenty of side quests in Borderlands 3. The quests are petty easy to find, but some are difficult to complete. Check out this Borderlands 3 Eden 6 side quest guide

Borderlands 3 Floodmoor Basin Crew Challenges Guide

Floodmoor Basin is one of the bigger maps with challenges in Borderlands 3. Some of the Crew Challenges are easy to find, others are difficult to find. Check out this Borderlands 3 Floormoor Basin

How To Break Purple Crystals In Borderlands 3

Early on in Borderlands 3, you will run into purple crystals on the ground. These crystals stick out and you can break them eventually. Check out this guide to find out how to break purple crystals

The post Borderlands 3 The Anvil Crew Challenges Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-the-anvil-crew-challenges-guide/…

0
Read More

Borderlands 3 Eden 6 Side Quest Guide

Borderlands 3 Eden 6 Side Quest Guide
Eden 6 is another large area with plenty of side quests in Borderlands 3. The quests are petty easy to find, but some are difficult to complete. Check out this Borderlands 3 Eden 6 side quest guide to complete them all.

Borderlands 3 Eden 6 Side Quest Guide

Dont Truck With Eden 6
You get this quest when you get to the first road in Eden 6. Talk to Miller up at Knotty Peak, follow the story to get to it. You have to destroy two vehicles to lure out the target. Try to kill them as they spawn, or else they will drag you all around the swamp with a chase. When the two enemies are dead, go meet Bloodflap. He will jump out from the log and you have to kill him, he is in a truck. If you have the sticky bomb attachment, use that to blow him out quick.
Get Quick Slick
This quest can be found here on the map.

Get Quick Slick Borderlands 3

Quest kind of sucks because the cars handle like a bowling ball on ice, but it has almost no recharge on the boost. For the last jump watch out for the log that comes overhead. I lined myself up with the jump, boost started, boosted again on the ramp, stopped before the next jump, and finally boosted up the last ramp. Destroy the car on the lonely island and loot the fridge to complete the quest.

Check back soon for updates.

Borderlands 3 Eden 6 Side Quest Guide

Eden 6 is another large area with plenty of side quests in Borderlands 3. The quests are petty easy to find, but some are difficult to complete. Check out this Borderlands 3 Eden 6 side quest guide

Borderlands 3 Floodmoor Basin Crew Challenges Guide

Floodmoor Basin is one of the bigger maps with challenges in Borderlands 3. Some of the Crew Challenges are easy to find, others are difficult to find. Check out this Borderlands 3 Floormoor Basin

How To Break Purple Crystals In Borderlands 3

Early on in Borderlands 3, you will run into purple crystals on the ground. These crystals stick out and you can break them eventually. Check out this guide to find out how to break purple crystals

Borderlands 3 Keep The Stache Or Lose The Stache Guide

During one of the main missions in Borderlands 3, you will have to make a choice involving someones mustache. It isn’t a major choice or anything, but it is nice to know what you get from both

The post Borderlands 3 Eden 6 Side Quest Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-eden-6-side-quest-guide/…

0
Read More

Borderlands 3 Floodmoor Basin Crew Challenges Guide

Borderlands 3 Floodmoor Basin Crew Challenges Guide
Floodmoor Basin is one of the bigger maps with challenges in Borderlands 3. Some of the Crew Challenges are easy to find, others are difficult to find. Check out this Borderlands 3 Floormoor Basin Crew Challenge guide to complete them all.

Borderlands 3 Floodmoor Basin Crew Challenges Guide

Crimson Radio 1
Work in progress.
Crimson Radio 2
Second radio is found here on the map.

Crimson Radio 2 Borderlands 3

Jump up the little shed and then jump up to the small railing. Turn around and shut down the radio signal.

Dead Claptrap 1
The first dead Claptrap can be found here on the map. He is stuck in between some roots and a rock.

Dead Claptrap 1 Borderlands 3 2

Dead Claptrap 1 Borderlands 3

Dead Claptrap 2
Work in progress.
Hijack Target 1
Work in progress.
Hijack Target 2
This one is a Cyclone and it is found here on the map. You will have to fight your way there and then make a jump to get the bike.

Hijack Target 2 Borderlands 3

Legendary Hunt
The hunt cant be found here on the map, it is a large dinosaur.

Legendary Hunt Borderlands 3

Typhon Dead Drop
Work in progress.

/accordion_item]

First one can be found here. You will have to fight your way up to grab it.

Typhon Log 1 Borderlands 3

Second one can be found here.

Check back soon for updates.

Borderlands 3 Eden 6 Side Quest Guide

Eden 6 is another large area with plenty of side quests in Borderlands 3. The quests are petty easy to find, but some are difficult to complete. Check out this Borderlands 3 Eden 6 side quest guide

Borderlands 3 Floodmoor Basin Crew Challenges Guide

Floodmoor Basin is one of the bigger maps with challenges in Borderlands 3. Some of the Crew Challenges are easy to find, others are difficult to find. Check out this Borderlands 3 Floormoor Basin

How To Break Purple Crystals In Borderlands 3

Early on in Borderlands 3, you will run into purple crystals on the ground. These crystals stick out and you can break them eventually. Check out this guide to find out how to break purple crystals

Borderlands 3 Keep The Stache Or Lose The Stache Guide

During one of the main missions in Borderlands 3, you will have to make a choice involving someones mustache. It isn’t a major choice or anything, but it is nice to know what you get from both

The post Borderlands 3 Floodmoor Basin Crew Challenges Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-floodmoor-basin-crew-challenges-guide/…

0
Read More

How To Break Purple Crystals In Borderlands 3

How To Break Purple Crystals In Borderlands 3
Early on in Borderlands 3, you will run into purple crystals on the ground. These crystals stick out and you can break them eventually. Check out this guide to find out how to break purple crystals in Borderlands 3.

How To Break Purple Crystals In Borderlands 3

In order to break the purple crystals in Borderlands 3, you will have to progress to a certain point in the story. After you complete the mission “Beneath the Meredian” you will be able to bust the crystals with melee. When you break the crystals, you will earn extra Eridium, so be sure to bust any you come across. This currency can be used to buy new weapons, new skins, new decorations, and other goodies on your ship from the crazy guy behind the locked door. When you have the ability to smash the crystals, you can go back to the older planets and gather some there as well. The more you have the better, especially for the end game.

Check back later for more Borderlands 3 guides.

How To Break Purple Crystals In Borderlands 3

Early on in Borderlands 3, you will run into purple crystals on the ground. These crystals stick out and you can break them eventually. Check out this guide to find out how to break purple crystals

Borderlands 3 Keep The Stache Or Lose The Stache Guide

During one of the main missions in Borderlands 3, you will have to make a choice involving someones mustache. It isn’t a major choice or anything, but it is nice to know what you get from both

Borderlands 3 Neon Arterial Crew Challenges Guide

Next up for Crew Challenges is the small area, Neon Arterial. This Borderlands 3 Neon Arterial Crew Challenges Guide runs you through the brief list of challenges in this next area as we walk you

Borderlands 3 – All Challenges Guide

Crew Challenges offer great rewards in Borderlands 3. This Borderlands 3 – All Challenges Guide is a central focus for all of our Crew Challenges in Borderlands 3 with links to each of the different

The post How To Break Purple Crystals In Borderlands 3 appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/how-to-break-purple-crystals-in-borderlands-3/…

0
Read More

Borderlands 3 Keep The Stache Or Lose The Stache Guide

Borderlands 3 Keep The Stache Or Lose The Stache
During one of the main missions in Borderlands 3, you will have to make a choice involving someones mustache. It isn’t a major choice or anything, but it is nice to know what you get from both options. Check out this Borderlands 3 keep the stache or lose the stache guide to find out which one is better.

Borderlands 3 Keep The Stache Or Lose The Stache Guide

Both results end in the game saying the Rhys will remember this, but I think that is just the game trolling choices in video games.

Keep The Stache
You will talk his stache up like it is super impressive. Rhys will say thank you and hand you the map fragment. You will get your quest reward and unlock a new head piece, which is Rhys with a mustache on. The game says he will remember this, but I don’t think it amounts to anything. I will update if it does. Rhys keeps his mustache.

Lose The Stache
You insult Rhys, pretty brutally might I add, and it says Rhys will remember this. He will hand you the key fragment and give you your quest reward. You get some cash and the head oh Rhys without a mustache. Rhys will not keep his mustache if you pick this option. I will update if anything else happens because of this.

Check back soon for more Borederlands 3 guides.

Borderlands 3 Keep The Stache Or Lose The Stache Guide

During one of the main missions in Borderlands 3, you will have to make a choice involving someones mustache. It isn’t a major choice or anything, but it is nice to know what you get from both

Borderlands 3 Neon Arterial Crew Challenges Guide

Next up for Crew Challenges is the small area, Neon Arterial. This Borderlands 3 Neon Arterial Crew Challenges Guide runs you through the brief list of challenges in this next area as we walk you

Borderlands 3 – All Challenges Guide

Crew Challenges offer great rewards in Borderlands 3. This Borderlands 3 – All Challenges Guide is a central focus for all of our Crew Challenges in Borderlands 3 with links to each of the different

Borderlands 3 Atlas HQ Crew Challenges Guide

After Skywell-27 you will reach the Atlas HQ challenges section of Borderlands 3. This Borderlands 3 Atlas HQ Crew Challenges Guide will walk you through all of the different challenges available in

The post Borderlands 3 Keep The Stache Or Lose The Stache Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-keep-the-stache-or-lose-the-stache-guide/…

0
Read More

Borderlands 3 Neon Arterial Crew Challenges Guide

Borderlands 3 Neon Arterial Crew Challenges Guide
Next up for Crew Challenges is the small area, Neon Arterial. This Borderlands 3 Neon Arterial Crew Challenges Guide runs you through the brief list of challenges in this next area as we walk you through collecting Dead Claptraps, Typhon Logs and the Dead Drop.

Much like the Atlas HQ, Neon Arterial is a much smaller area than previous areas in Borderlands 3. Whereas most areas feature 5 or 6 Crew Challenges, Neon Arterial only features a small number of Crew Challenges, just 3 to be exact.

Borderlands 3 Neon Arterial Crew Challenges Guide

Neon Arterial Dead Claptrap
Neon Arterial Dead Claptrap
Watch out for the train.
Neon Arterial Typhon Logs

Typhon Logs 1
Neon Arterial Typhon Logs 1

Typhon Logs 2
Neon Arterial Typhon Logs 2

Typhon Logs 3
Neon Arterial Typhon Logs 3

That completes all of the Neon Arterial Crew Challenges. Make sure to check out our full Borderlands 3 Challenges Guides for other areas in the game.

Borderlands 3 Legendary Hunt Creature Location Guide

Legendary Hunts are challenging fights in Borderlands 3. This Borderlands 3 Legendary Hunt Creature Location Guide will tell you where to find all of the Legendary Creatures we’ve discovered on our

How To Lower Shields In Meridian Borderlands 3

The Meridian Metroplex has force fields that block your passage. This guide explains How To Lower Shields In Meridian Borderlands 3 so you can figure out how to get past the shields and explore the

How To Open Locked Containers In Borderlands 3

There are two types of locked containers in Borderlands 3. This guide on How To Open Locked Containers In Borderlands 3 explains how you open the large, more ornate looking containers with the T

How To Get Golden Keys In Borderlands 3

Found the Golden Chest on Sanctuary in Borderlands 3, but how to open it? This guide explains How To Get Golden Keys In Borderlands 3 so you can open the Golden Chest and gather the various powerful

The post Borderlands 3 Neon Arterial Crew Challenges Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-neon-arterial-crew-challenges-guide/…

0
Read More

Borderlands 3 – All Challenges Guide

Borderlands 3 - All Challenges Guide
Crew Challenges offer great rewards in Borderlands 3. This Borderlands 3 – All Challenges Guide is a central focus for all of our Crew Challenges in Borderlands 3 with links to each of the different zones and areas we’ve exploring during our adventures in Borderlands 3.

Each region in Borderlands 3 features several Crew Challenges. These Crew Challenges vary but usually require you to discover various items and collectibles in exchange for experience points, cash, and of course, guns. Below is a list of each of the areas in Borderlands 3 that we’ve explored thus far.

Borderlands 3 – All Challenges Guide

There’s still a lot more of Borderlands 3 waiting to be explored. Check back soon as we cover more regions and more Crew Challenges.

Borderlands 3 – All Challenges Guide

Crew Challenges offer great rewards in Borderlands 3. This Borderlands 3 – All Challenges Guide is a central focus for all of our Crew Challenges in Borderlands 3 with links to each of the different

Borderlands 3 Lectra City Crew Challenges Guide

Lectra City is another filled with interesting challenges and rewards. This Borderlands 3 Lectra City Crew Challenges Guide lists all of the different Crew Challenges available in Lectra City

Borderlands 3 Ascension Bluff Crew Challenges Guide

Crew Challenges, or Challenges, can be found on the map screen of Borderlands 3. This Borderlands 3 Ascension Bluff Crew Challenges Guide will show you where to find all of the Challenges to complete

Borderlands 3 Athenas Crew Challenges Guide

Athenas is the next area in the game with more Challenges. This Borderlands 3 Athenas Crew Challenges Guide covers all aspects of the Crew Challenges on Athenas including the Crimson Radio, Dead

The post Borderlands 3 – All Challenges Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-all-challenges-guide/…

0
Read More

Borderlands 3 Atlas HQ Crew Challenges Guide

Borderlands 3 Atlas HQ Crew Challenges Guide
After Skywell-27 you will reach the Atlas HQ challenges section of Borderlands 3. This Borderlands 3 Atlas HQ Crew Challenges Guide will walk you through all of the different challenges available in Atlas HQ including finding all of the Typhon Logs and the favorite, Typhon Dead Drop.

Atlas HQ is a little bit sized compared to previous areas. There’s a lot going on and a lot to do but it’s much more manageable than say, Skywell-27, with its multiple layers and difficult to navigate tiers. Our guide below breaks down the location of each Crew Challenge in Altas.

Borderlands 3 Atlas HQ Crew Challenges Guide

Atlas HQ Crimson Radio
Atlas HQ Crimson Radio
After the fight with the turret near the end of the level, there’s a ladder to drop down. You’ll find the Crimson Radio below.
Atlas HQ Dead Claptrap
Atlas HQ Dead Claptrap
Once you leave the main courtyard and enter the other part of the base, it’s up the stairs on the upper level.
Atlas HQ Typhon Logs

Typhon Logs 1
Atlas HQ Typhon Logs 1

Typhon Logs 2
Atlas HQ Typhon Logs 2

Typhon Logs 3
Atlas HQ Typhon Logs 3

That wraps up all of the different Crew Challenges on Atlas HQ.

Borderlands 3 Legendary Hunt Creature Location Guide

Legendary Hunts are challenging fights in Borderlands 3. This Borderlands 3 Legendary Hunt Creature Location Guide will tell you where to find all of the Legendary Creatures we’ve discovered on our

How To Get More Weapon Slots In Borderlands 3

When you start in Borderlands 3 you can only have two weapons equipped at a time. There are slots for two more, but they are locked when you begin the game. Check out this guide to find out how to

Borderlands 3 Atlas HQ Crew Challenges Guide

After Skywell-27 you will reach the Atlas HQ challenges section of Borderlands 3. This Borderlands 3 Atlas HQ Crew Challenges Guide will walk you through all of the different challenges available in

How To Get More Inventory Space In Borderlands 3

When you first start in Borderlands 3 you have hardly any inventory space at all. You will quickly fill up and are probably wondering how you get more space. Check out this guide to find out how to

The post Borderlands 3 Atlas HQ Crew Challenges Guide appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/game-guides/borderlands-3-atlas-hq-crew-challenges-guide/…

0
Read More

Borderlands 3 Skywell-27 Crew Challenges Guide

Borderlands 3 Skywell-27 Crew Challenges Guide
Skywell-27 takes the battle to space with brand new Challenges. This Borderlands 3 Skywell-27 Crew Challenges Guide is a walkthrough for the 5 different Crew Challenges on Skywell-27 showing you where to find the Dead Claptraps, Typhon Logs, and more.

Skywell-27 drops a little on the Crew Challenges side compared to previous areas in Borderlands 3, featuring only 5 Crew Challenges as opposed to the 6 on the previous levels. Check out the article below for a breakdown of each of the challenges and how to complete them.

Borderlands 3 Skywell-27 Crew Challenges Guide

Skywell-27 Dead Claptrap

Dead Claptrap 1
Skywell-27 Dead Claptrap 1
This one sits atop a large stone pillar. You need to jump across to it from another large stone-like rock formation nearby.

Dead Claptrap 2
Skywell-27 Dead Claptrap
This one is on the lower tier of the level, after you meet Rhys Ball in the main story.

Skywell-27 Target Of Opportunity
Skywell-27 Target Of Opportunity
Handsome Jackie can be found here on the map. It’s still pointing North but I have zoomed in for better clarity as there are multiple layers to this map. It’s shortly after you meet Rhys Ball.
Skywell-27 Typhon Logs

Typhon Logs 1
Skywell-27 Typhon Logs 1
You have to travel a small distance ahead in the level and approach the room from below as the first entrance you encounter is locked.

Typhon Logs 2
Skywell-27 Typhon Logs 2
This one is still on the top level. Progress through the main story until the NPC announces that they are going to destroy a favorite theme park. From there, follow the platforms to this location.

Typhon Logs 3
Skywell-27 Typhon Logs 3
This is on the second level, below the main level. Halfway through the level after you meet Rhys Ball. There’s a ladder you must climb to reach the location.

Typhon Logs 3 How To Get

That wraps up all of the Crew Challenges on Skywell-27.

Borderlands 3 The Droughts Crew Challenges Guide

Crew Challenges are new challenges you can find on the various maps of Borderlands 3. Some of these are easy, and others preset a much harder challenge. Check out this Borderlands 3 The Droughts Crew

Where To Find Pre-Order DLC Items In Borderlands 3

If you pre-order Borderlands 3, there’s special DLC items to claim. This guide on Where To Find Pre-Order DLC Items In Borderlands 3 will tell you where you can find the pre-order DLC items that you

Borderlands 3 SHiFT Codes List Guide

SHiFT codes return in Borderlands 3 offering Golden Keys and other rewards. This Borderlands 3 SHiFT Codes List Guide has a list of the previously release SHiFT codes as well as instructions on how

Borderlands 3 Skywell-27 Crew Challenges Guide

Skywell-27 takes the battle to space with brand new Challenges. This Borderlands 3 Skywell-27 Crew Challenges Guide is a walkthrough for the 5 different Crew Challenges on Skywell-27 showing you

The post Borderlands 3 Skywell-27 Crew Challenges Guide appeared …

0
Read More