$ hdiutil attach -nomount ram://$((2048*1000))/dev/disk3
$ diskutil eraseVolume HFS+ RAMDisk /dev/disk3
Started erase on disk3
Unmounting disk
Erasing
Initialized /dev/rdisk3 as a 1000 MB case-insensitive HFS Plus volume
Mounting disk
Finished erase on disk3 RAMDisk
$ hdiutil detach /dev/disk3
# Disable root loginPermitRootLogin no
# Change the default portPort 12345# Enable login with keyRSAAuthentication yes
PubkeyAuthentication yes
# Disable login with passwordUsePAM no
PasswordAuthentication no