putty

【CentOS 7笔记3】,终端连接和密钥配置#171018

爱⌒轻易说出口 提交于 2019-12-01 10:29:33
hellopasswd 一. PuTTY和XShell ssh(secure shell) PuTTY是一个Telnet、SSH、rlogin、纯TCP以及串行接口连接软件。 Xshell是一个强大的安全终端模拟软件,它支持SSH1, SSH2, 以及Microsoft Windows 平台的TELNET 协议。 PuTTY完全免费,XShell支持多窗口切换 终端下载 PuTTY XShell 二. PuTTy终端 点击 PuTTY 进入找到下载页面,选择putty.zip 解压putty.zip,打开PUTTY.EXE,再Host Name(or IP address)填入上次linux配置的IP地址,端口号默认为22,再Saved Sessions填写保存的名字,点击Save保存,选中保存的名字后,其他设置可以不用动,直接点击Open打开。然后弹出一个窗口,点击是,输入所连接linux的管理员root和密码。 三. PuTTY密钥认证 打开PUTTYGEN.EXE,点击Generate,移动鼠标是生成的密钥加快速度,然后会弹出一个界面,public key为公钥,private key为私钥,在key passphrase中输入密钥密码,并点击Save各保存密钥。 复制公钥,右键可直接在PuTTY终端进行复制 mkdir /root/.ssh #创建目录 chmod 700

配置putty和xshell远程连接centos

梦想与她 提交于 2019-12-01 10:29:19
虚拟机拍摄快照方便实验: 使用putty远程连接Linux: Putty下载网址: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 开始配置putty: putty密钥认证: 密钥:分私钥和公钥,私钥可以看作要是钥匙自己持有;公钥是锁,终端放置。 第一步:创建目录(mkdir):mkdir /ROOT/.SSH 第二步:改权限(chmod):chmod 700 /ROOT/.SSH 第三步:写文件(vi):vi /root/.ssh/authorized_keys(不可用tab补全,因为该文件不存在),按i键粘贴公钥 第四步:关闭防火墙(selinux):setenforce 0(ctrl+d和exit退出) 第五步:设置putty加载私钥 、 使用xshell连接Linux 小知识: 若想要有putty里的鼠标右键点击粘贴需要设置:工具-选项 xshell密钥认证 保持默认就好了 下一步跟putty里配置密钥方法相同: 来源: oschina 链接: https://my.oschina.net/u/3706800/blog/1553091

putty使用教程

核能气质少年 提交于 2019-12-01 09:49:01
最近开始使用putty,在网络上看到一份很不错的教程,共享一下:putty使用方法,中文教程序言 大致内容罗列如下: 最简单的使用,登录 SSH 主机 中文乱码的处理 PuTTY 常用配置的说明 复制、粘贴 保存会话 注销 自动登录用户名 自动设置环境变量 设置代理服务器 自动执行命令 备份、删除 PuTTY 的设置 PuTTY 的 X11 转发 如何用 PuTTY 建立 SSH 隧道 如何用 PuTTY 建立反向的 SSH 隧道,像个特洛伊木马一样突破防火墙 把 PuTTY 作为一个安全的代理服务器 安全的上网不被嗅探 避免 MSN 等聊天工具被监听 怎样用 PSCP、PSFTP 安全的传输文件 功能强大的 SFTP 客户端 WinSCP 用 PuTTYgen 生成密钥,登录 SSH 主机不再需要口令 Pagent 代理密钥,每次开机只需要输入一次密钥口令 Plink 简单而又迅速的执行 SSH 主机上的程序 常见问题 除了上面的这些,还夹杂了一些 PuTTY 使用上的技巧、服务器配置的一些安全建议。说起来这是一些有关 PuTTY 的使用教程,其实也就是 SSH 的参考教程,绝大多数的内容在其他系统或软件上也都是一样的。不同的是参数、配置、命令行之类的,只要会了一个,其他也就触类旁通了。 一些基本知识 如果你已经知道 SSH、Telnet、Rlogin 这是什么,就跳过这一部分

How can I run a Linux command that still runs after I close my PuTTY SSH session?

元气小坏坏 提交于 2019-12-01 09:39:02
问题 I am connecting to my NAS over putty which is running linux on it. I wanted to move a big directory from one location to another. Is it possible to keep the process running after I close the putty session ? I am afraid that if I close putty the files will not be copied to the end ? 回答1: Start your task with 'nohup' and put it in the background with '&', e.g.: $ nohup mv /here /there & $ exit and it should continue running. 回答2: I would suggest using screen for this. Start a new screen, screen

[AWS - EC2]如何使用 PuTTY 连接到 Amazon Linux 2 实例。How to Connect Amazon Linux 2 Instance from Windows Using PuTTY

て烟熏妆下的殇ゞ 提交于 2019-12-01 09:24:15
1. 下载 PuTTY 2. 安装到任意目录 3. 打开 PuTTYgen (注意不是 PuTTY), 如图: 选择 RSA , 点击 Load。 找到从 AWS 创建实例的时候生成的 key,要选择所有文件才能显示。 弹出个提示: 是 原来pem的key已经被转成RSA格式, 导出私有密钥为ppk : 4. 关掉 PuTTYGen 打开 PuTTY 。 在Host Name 里输入 EC2 实例的 公有 DNS (IPv4) 。 端口 22。(最好保存一下以后用) 5. 左侧的 Connection 》》 SSH 》》 Auth 里。 选择刚才生成的ppk密钥。 6. 点击Open ,输入用户名 ec2-user 即可登录。( Amazon Linux 2 ) 其他实例的用户名: 对于 CentOS AMI,用户名称是 centos 。 对于 Debian AMI,用户名称是 admin 或 root 。 对于 Fedora AMI,用户名为 ec2-user 或 fedora 。 对于 RHEL AMI,用户名称是 ec2-user 或 root 。 对于 SUSE AMI,用户名称是 ec2-user 或 root 。 对于 Ubuntu AMI,用户名称是 ubuntu 。 参考文档: AWS EC2 官方文档 来源: https://www.cnblogs.com

Error on checking balance via USSD

*爱你&永不变心* 提交于 2019-12-01 07:28:59
问题 I've been trying to check my balance from by 3g modem via AT commands and seem to be stuck. The device infomation is as follows: Manufacturer: QUALCOMM INCORPORATED Model: M6281 Revision: SSD_M6281A-0.0.1 1 [Oct 02 2008 07:00:00] The modem has USSD capability (advertised and also present in the factory installed dashboard). I am connecting via putty to COM4 serial port which is my modems application port. All AT commands are working fine but I am getting an error on issuing the following via

Start SSH connection in PuTTY, run a command, and leave the session active

*爱你&永不变心* 提交于 2019-12-01 05:50:09
I want to run a few shell commands every time I SSH to a server via PuTTY. I'm connecting to a production web server managed by someone else, and I don't want to store my own scripts there. I see the option Connection > SSH > Remote Command , but if I put my initialization commands there, after starting the session, it closes immediately after the commands execute. How can I run the Remote Command, and then keep the session open so I can continue using it? The SSH session closes (and PuTTY with it) as soon as the command finishes. By default the "command" is a shell. As you have overridden

Install fileinfo php extension

瘦欲@ 提交于 2019-12-01 05:17:05
As the fileinfo is moved from PECL to PHP. What is the best way to install it through WHM or putty.? I tried following command: pecl install fileinfo and received following error: WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources "WARNING: channel "pear.php.net" has updated its protocols, use "pecl channel-update pear.php.net" to update downloading Fileinfo-1.0.4.tgz ... Starting to download Fileinfo-1.0.4.tgz (5,835 bytes) .....done: 5,835 bytes 3 source files, building running: phpize Cannot find config.m4. Make sure that you run '/usr/local

Windows下使用PuTTY连接Centos7、Linux系统目录结构、一些操作命令

[亡魂溺海] 提交于 2019-12-01 02:41:57
PuTTY可以远程管理Linux。 PuTTY官网: https://www.putty.org/ 一、使用PuTTY连接Centos7 下载安装后,打开如下图: 1.输入主机名或IP地址 2.端口号默认22 3.设置一个名称 4.点击save会保存上面名称和配置 5.点击open 进行连接,弹出下面界面 输入用户名、密码登录。 二、Linux的系统目录结构 登录后,在命令行窗口输入下面命令显示目录结构 ls / / 根目录,Linux中没有像windows那样分c盘、d盘等,最底层就是 /。 /bin 系统启动时需要的执行文件(二进制)。 /dev dev是Device(设备)的缩写, 该目录下存放的是Linux的外部设备。 /home 每个用户都有自己的目录,除了root用户外,其它用户的目录都在这里面。 /mnt 让用户临时挂载别的文件系统,可以将光驱挂载在/mnt/上,然后进入该目录就可以查看光驱里的内容了。 /proc 此目录的数据都在内存中,如系统核心,外部设备,网络状态,由于数据都存放于内存中,所以不占用磁盘空间,可以通过直接访问这个目录来获取系统信息。 /run 是一个临时文件系统,存储系统启动以来的信息。当系统重启时,这个目录下的文件应该被删掉或清除。 /srv 服务启动之后需要访问的数据目录。 /tmp 一般用户或正在执行的程序临时存放文件的目录。 /var

Install fileinfo php extension

此生再无相见时 提交于 2019-12-01 02:41:06
问题 As the fileinfo is moved from PECL to PHP. What is the best way to install it through WHM or putty.? I tried following command: pecl install fileinfo and received following error: WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources "WARNING: channel "pear.php.net" has updated its protocols, use "pecl channel-update pear.php.net" to update downloading Fileinfo-1.0.4.tgz ... Starting to download Fileinfo-1.0.4.tgz (5,835 bytes) .....done: 5,835