You are here

Networking Linux

Raspberry Pi as a Samba Server

Submitted by egbert on Fri, 06/14/2019 - 06:24

Simple file sharing with a Raspberry Pi is easy to setup. Following are the steps to get it up and running:


  • Raspberry Pi hardware
  • External USB Drive
  • Access to Pi's console

Get it up and running

  1. First get the UUID from the connected USB Drive. In your console type:sudo blkid

sudo blkid

Create an SSH key pair

Submitted by egbert on Fri, 09/14/2018 - 06:41

On the source machine:
Step 1.
ssh-keygen -t rsa -C %user%@%target% Enter a passphrase if you want, it is not necessary
Step 2.
cat ~/.ssh/ | ssh %user%@%target% 'cat >> .ssh/authorized_keys'

Authorized Keys file on target machine
.ssh/authorized_keys is a file on the target machine and should be mode 600.

Related: Using multiple ssh private keys