Skip to primary content
Skip to secondary content

Incredigeek

Incredigeek

Main menu

  • Home
  • Linux
  • Windows
  • OS X
  • Projects
    • UBNTMOD
    • Email Tracker
    • IP Watt Meter
    • Grond : LUKS Password Cracker

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

Recent Posts

  • Install Element (Matrix Client) on Ubuntu
  • Matrix Synapse Server use Self Signed Certificates
  • fatal: [matrix2.host.com]: UNREACHABLE! => changed=false
  • [WARNING]: Could not match supplied host pattern, ignoring: matrix_servers
  • Backup Matrix Synapse PostgreSQL Database
  • Configure rsnapshot on Ubuntu Server
  • GTX 1070 – ETH Hashrate and Power Consumption
  • GTX 3090 – ETH Hashrate and Power Consumption
  • Nvidia RTX 3080 – Hashrate and Power Consumption
  • Nvidia RTX 3070 – Hashrate and Power Consumption

Tags

  • android
  • apple
  • Backup
  • bash
  • centos
  • command line
  • cpanel
  • debian
  • eth
  • ethereum
  • fedora
  • firewall
  • install
  • ip
  • librenms
  • linux
  • Mac
  • microsoft
  • mikrotik
  • mining
  • monitoring
  • mysql
  • nms
  • OS X
  • password
  • pi
  • programming
  • Raspberry pi
  • routeros
  • script
  • snmp
  • ssh
  • ubiquiti
  • ubnt
  • ubuntu
  • unifi
  • unifi-video
  • unity
  • unity3d
  • vm
  • whm
  • Windows
  • XenServer
  • zenoss
  • zenoss 5

Recent Posts

  • Install Element (Matrix Client) on Ubuntu
  • Matrix Synapse Server use Self Signed Certificates
  • fatal: [matrix2.host.com]: UNREACHABLE! => changed=false
  • [WARNING]: Could not match supplied host pattern, ignoring: matrix_servers
  • Backup Matrix Synapse PostgreSQL Database

Categories

  • Alienware
  • AMD
  • Android
  • Apple
  • Arduino
  • Baicells
  • Cable
  • Cambium
  • CentOS
  • Command Line
  • Computer Mods
  • cPanel
  • Cron
  • Crypto Currency
  • Debian
  • Dell
  • DNS
  • DNS
  • Drones
  • Email
  • Fedora
  • FreeBSD
  • Freeradius
  • GPU Crypto Hashrates
  • GrapheneOS
  • Hacking
  • Hackintosh
  • Information
  • Inkscape
  • Internet
  • LibreNMS
  • LineageOS
  • Linux
  • MacOS
  • Matrix
  • Mikrotik
  • Minecraft
  • Mining
  • MySQL
  • Nagios
  • Networking
  • Networking
  • Nvidia
  • Office
  • OS X
  • Programming
  • PSU
  • Python
  • Random
  • Raspberry Pi
  • RedHat
  • Reset Passwords
  • Scripts
  • Security
  • Slackware
  • SNMP
  • Tear Downs
  • Ubiquiti
  • Ubiquiti Command Line
  • Ubuntu
  • Uncategorized
  • UniFi
  • UniFi Video
  • Unity3D
  • VIM
  • Virtualization
  • Visual Studio
  • VMware
  • Web
  • Web Browser
  • Windows
  • Windows 10
  • Windows 8
  • Wireless
  • Wireshark
  • WISP
  • WordPress
  • XenServer
  • Zenoss
Proudly powered by WordPress