`
sillycat
  • 浏览: 2539189 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Linux Server Deployment(IV)SSH private/public key

阅读更多
Linux Server Deployment(IV)SSH private/public key

1. generate the public/private keys for SSH on local server
>ssh-keygen -t rsa
Enter file in which to save the key(): 
Enter passphrase(empty for no passphrase):
Enter same passphrase again:
You identification has been saved in /home/username/.ssh/id_rsa.
You public key has been saved in /home/chengdu/.ssh/id_rsa.pub.

2. remote server and configuration
copy the keys from id_rsa.pub to remote server ~/.ssh/
>scp id_rsa.pub username@server.com:~/.ssh/

logon the remote server
>ssh username@server.com

put the public key in file authorized_keys
>cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

change the authority
>chmod 711 ~/.ssh
>chmod 644 ~/.ssh/authorized_keys

3. Success
>ssh username@server.com

I do not need to type password again.

references:
http://bbs.chinaunix.net/viewthread.php?tid=111248
http://shutiao2008.iteye.com/blog/315102
http://lhflinux.blog.51cto.com/1961662/526122
http://www.josephj.com/article/understand-ssh-key/



分享到:
评论

相关推荐

    实战集锦_WebLogic Server Deployment部署问题故障排除总结

    ### WebLogic Server Deployment部署问题故障排除总结 #### 一、问题描述 在部署过程中遇到的主要问题是WebLogic Server无法正确部署应用。具体表现为服务器选择的是旧版本的应用程序,而不是重新部署的新版本的...

    CentOS 7 Server Deployment Cookbook

    Deploy and manage today's essential services on an enterprise-class, open operating system About This Book * Configure and manage Linux servers in varying scenarios and for a range of business ...

    linux-deployment.html

    linux-deployment

    SUSE Linux Enterprise Server 12 SP5-automatic-deployment

    SUSE Linux Enterprise Server 12 SP5 自动化部署脚本,命令行版,图形化版本自动化脚本 openssl passwd -1 -stdin 生成密码 账号root/1234.com 971行出更改(此处是主机的密码$1$1rqHEpcL$B6DVO/fpXQq9DZe3g4nmH.</...

    Red Hat Enterprise Linux 6 Deployment Guide Deployment, Configur

    Red Hat Enterprise Linux 6 Deployment Guide Deployment, Configuration and Administration of Red Hat Enterprise Linux 6

    SUSE Linux Enterprise Server 15 SP3-automatic deployment

    SUSE Linux Enterprise Server 15 SP3 自动化部署脚本,命令行版,图形化版本自动化脚本 openssl passwd -1 -stdin 生成密码 账号root/1234.com 867行更改(此处是主机的密码$1$1rqHEpcL$B6DVO/fpXQq9DZe3g4nmH.</...

    Red Hat Enterprise Linux 5 Deployment Guide

    Deployment, configuration and administration of Red Hat Enterprise Linux 5

    Cobbler is a versatile Linux deployment server.zip

    Linux是一套免费使用和自由传播的类Unix操作系统,由林纳斯·托瓦兹于1991年首次发布。 Linux不仅是一个强大的操作系统,也是一个庞大的技术生态系统,涵盖了从服务器到个人电脑的各种应用场景。同时,它的开源特性...

    IBM WebSphere Application Server 6.1 for Linux安装步骤

    IBM WebSphere Application Server 6.1 for Linux 安装步骤 IBM WebSphere Application Server 6.1 是一个功能强大的应用服务器,适用于 Linux 操作系统。本文将详细介绍在 Linux 平台上安装 WebSphere 6.1 的步骤...

    Altiris安装配置学习教程(三)- 安装配置Deployment Server

    "Altiris安装配置学习教程(三)- 安装配置Deployment Server"是针对如何设置和管理Altiris Deployment Server的详细指南。Deployment Server是Altiris的核心组件,它负责执行软件分发、系统迁移、更新和维护任务。 ...

    linux-server-install:UBUNTU Server 20+的安装脚本,只需输入所需内容

    wget https://github.com/janforman/linux-server-install/archive/main.zip -O /tmp/t.zip && unzip /tmp/t.zip -d /tmp && rm /tmp/t.zip && cd /tmp/linux-server-install-main/ && ./install.sh nginx(使用php...

    Linux Thin Client Networks Design and Deployment

    本书《Linux Thin Client Networks Design and Deployment》为系统管理员提供了一本快速指南,作者David Richards根据自己在佛罗里达州拉戈市担任系统管理员的经验,分享了在UNIX、Linux和瘦客户端环境下的工作知识...

    WebSphere Application Server Network Deployment 7 集群安装部署步骤

    WebSphere Application Server (WAS) 是IBM提供的一款强大的企业级应用服务器,其Network Deployment(ND)版本支持集群配置,能够实现高可用性、负载均衡和故障转移,是大型企业IT系统的重要组成部分。在WAS ND 7.0...

    MVC3 DLL(Deployment.dll / WebPages.dll 等)

    包括System.Web.WebPages.Razor.dll, System.Web.WebPages.Deployment.dll, System.Web.Mvc.dll, System.ComponentModel.DataAnnotations.dll, Microsoft.Web.Infrastructure.dll, System.ComponentModel....

    winscp570source.zip

    (see /deployment/readme) /dotnet source code of WinSCP .NET assembly /libs 3rd party libraries WinSCP homepage is http://winscp.net/ See the file 'license.txt' for the license conditions.

    task-manager:任务

    微帖 使用Vue.js,Express和MongoDB的全栈...# Build for production (Will build into server/public, ready for deployment) cd client npm run build 应用程式资讯 作者 纳西尔汗259 版本 1.0.0 执照 该项目已获得

    microposts_fullstack_vue:全栈Vue和Express

    微帖 使用Vue.js,Express和MongoDB的全栈...# Build for production (Will build into server/public, ready for deployment) cd client npm run build 应用程式资讯 作者 布拉德遍历 版本 1.0.0 执照 该项目已获得M

    Case Server Deployment

    ### Case Server 部署手册知识点详述 #### 一、服务器部署概览 在《Case Server 部署手册》中,详细介绍了Case Server(以下简称CAS)的部署过程,包括安装、集群化以及定制化等关键环节。该文档不仅为用户提供了...

Global site tag (gtag.js) - Google Analytics