Skip to primary content
Skip to secondary content

Incredigeek

Incredigeek

Main menu

  • Home
  • Linux
  • Ansible
  • Security
  • Ubiquiti
  • LibreNMS
  • Projects
    • Pangolin Whisper Web Interface
    • UBNTMOD
    • Email Tracker
    • IP Watt Meter
    • Grond : LUKS Password Cracker
  • Donate

Tag Archives: login. remote

Setting up ssh keys in Linux

Posted on July 8, 2015 by admin
Reply

Generate a key with the following command.  If you are trying to setup passwordless authentication, then do not enter in a password

ssh-keygen

or if you want to use DSA,

ssh-keygen -t dsa

Example:

[root@localhost ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
ef:f2:34:e5:12:ac:ab:1b:67:9f:ff:00:12:2d:cd:16 root@localhost

Upload public key to server.  Note: you will need to enter in your Password so ssh-copy-id can upload the key, after that you should not need to enter in a password.

 ssh-copy-id root@remote-server

Now login to the remote server.

ssh root@remote-server
Posted in Linux | Tagged login. remote, passwordless, ssh | Leave a reply

If you do not want Ads, use a Adblocker.

Was the information helpful? Consider donating some Monero to keep fresh information coming!

Recent Blog Post

  • Bad server host key: Invalid key length
  • How to receive an Implicit Intent in an Android App
  • Ansible Playbook for Ubuntu UFW Firewall Rules
  • How to flash unsigned firmware on a Ubiquiti Airmax Radio
  • Ansible “PlayContext” error for RouterOS Community Collection

  • 3D Printing
  • AI
  • Alienware
  • AMD
  • Android
  • Ansible
  • Apple
  • Arduino
  • Automation
  • Baicells
  • Cable
  • Cambium
  • CCNA
  • CentOS
  • Chia
  • cnPilot
  • Command Line
  • Computer Mods
  • cPanel
  • Cron
  • Crypto Currency
  • Debian
  • Dell
  • DNS
  • DNS
  • Drones
  • Email
  • Fedora
  • FreeBSD
  • Freeradius
  • GPU Crypto Hashrates
  • GrapheneOS
  • Hacking
  • Hackintosh
  • Hardening Guides
  • Information
  • Inkscape
  • Internet
  • JavaScript
  • Learning
  • Learning
  • LibreNMS
  • LineageOS
  • Linux
  • MacOS
  • Matrix
  • Mikrotik
  • Minecraft
  • Mining
  • MySQL
  • Nagios
  • Networking
  • Networking
  • Nvidia
  • Office
  • OS X
  • Playbooks
  • Plotman
  • Programming
  • PSU
  • Python
  • Random
  • Raspberry Pi
  • Recovery
  • RedHat
  • Reset Passwords
  • Scripts
  • Security
  • Slackware
  • SNMP
  • Stories
  • Tear Downs
  • Tips and Tricks
  • Ubiquiti
  • Ubiquiti Command Line
  • Ubuntu
  • Uncategorized
  • UniFi
  • UniFi Protect
  • UniFi Video
  • Unity3D
  • VIM
  • Virtualization
  • Visual Studio
  • VMware
  • Web
  • Web Browser
  • Windows
  • Windows 10
  • Windows 8
  • Wireless
  • Wireshark
  • WISP
  • WordPress
  • XenServer
  • Zenoss

android automation Backup bash centos command line cpanel crypto debian DNS docker email fedora firewall install javascript librenms linux microsoft mikrotik mining monitoring networking nms nvidia OS X password programming routeros script security snmp ssh ubiquiti ubnt ubuntu ui unifi unity unity3d upgrade whm Windows XenServer zenoss

Proudly powered by WordPress