putty

3.PUTTY和XSHLL远程连接以及密钥认证

北城余情 提交于 2019-11-30 05:25:43
5月30日任务 1.9 使用PuTTY远程连接Linux 1.10 使用xshell连接Linux 1.11 PuTTY密钥认证 1.12 xshell密钥认证 做快照,右键标签名字,可恢复到快照时的状态 1.9 使用PuTTY远程连接Linux 首先要打开putty的配置文件,需要先改一下配置 1.输入IP和端口、名字 2.改为2000(可上翻至2000页) 3.修改字体 4.选择UTF-8(可显示中文) 5.回到Session点击Save,并且打开 1.10 使用xshell连接Linux xshell链接linux的方法跟putty差不多,需注意的事设置保持活动状态和密码设置 需要设置右键为粘贴功能 1.11 PuTTY密钥认证: 首先putty上生成密钥对 找到之前下载的puttygen 然后linux上需要配置 mkdir /root/.ssh (mkdir即创建目录) chmod 700 /root/.ssh (chmod即改权限) vi /root/.ssh/authorized_keys 编辑模式后将公钥复制进来(需注意记得先按“A”) 然后保存退出 最后输入setenforce 0(即关闭linux防火墙) 最后在回到putty上 打开界面选中该文件名(aminglinux-01)load一下 然后在选中之前保存到物理机上的私钥 再回到session界面save

unable to get SSH keys working between sourcetree and github

蹲街弑〆低调 提交于 2019-11-30 04:35:47
I was able to create a key and connect to github following these instructions via the command prompt successfully: https://help.github.com/articles/generating-ssh-keys However, when I try to connect via Sourcetree and putty I cannot. I've tried: generating a new key with the putty key generator (SSH-2 RSA) entering a passphrase saving the private key saving the public key and adding a .pub extension copying/pasting the key from the putty key generator window into github attemping to refresh branches on a pull from my private github repository from my local repo using the SSH clone URL I got

Linux远程管理、用户权限常命令(四)

好久不见. 提交于 2019-11-30 04:32:36
远程管理常用命令 关机/重启:shutdown shutdown 选项 时间 可以安全关闭或者重新启动系统 -r 重新启动 ps:不指定选项和参数,默认表示1分钟之后关闭电脑 远程维护服务器时,最好不要关闭系统,而应该重新启动系统 shutdown -r now:重启操作系统,其中now表示现在 shutdown now :立刻关机 shutdown 20:25 :系统在今天20:25会关机 shutdown +10 :10分钟后自动关机 shutdown -c :取消之前制定的关机计划 查看或配置网卡信息: ifconfig configure a network interface 查看/配置计算机当前的网卡配置信息 ping ip地址 ping 检测到目标ip地址的连接是否正常 网卡: 网卡是一个专门负责网络通讯的硬件设备 ip是设置在网卡上的地址信息 远程登录和复制文件 ssh 在Linux中SSH是非常常用的工具,通过SSH客户端我们可以连接到运行了SSH服务器的远程机器上 数据传输加密,防信息泄露 数据压缩,提高传输速度 SSH客户端是一种使用Secure Shell(SSH)协议连接到远程计算机的软件 SSH是目前较可靠,专为远程登录会话和其他网络服务提供安全的协议 域名和端口号 域名: 有一串用点分隔的名字组成,例如:www.baidu.com 是IP地址的别名

PuTTY configuration equivalent to OpenSSH ProxyCommand

 ̄綄美尐妖づ 提交于 2019-11-30 03:46:20
I'm just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server ("MySshProxyingServer" in example below). Using Linux this is no problem with the ssh -W command. In PuTTY I can't find the options to create such a connection. Example under Linux ( ~/.ssh/config ): Host MyHostToConnectTo Hostname xx.xx.xx.xx User root Identityfile ~/.ssh/id_rsa ProxyCommand ssh MySshProxyServer -W %h:%p Anyone knows how to use such a config in PuTTY? The equivalent in PuTTY is "local proxy command". You can use the plink.exe with

Vim incremental search

梦想的初衷 提交于 2019-11-30 00:52:10
问题 I'm using putty on a Linux machine. My usual method for searching in vi is entering the slash / , then my search string, enter, then go through all the matches by n or shift + n . I was wondering if vi had a feature like Eclipse's Incremental Search ( ctrl + j ), wherein as I type, it jumps to the next logical match. I think one of my office mates used to do it but I'm not sure. 回答1: If you're using vim (and who isn't nowadays), you can enable incremental search with: :set incsearch Then just

Start background process from .bashrc

流过昼夜 提交于 2019-11-29 22:28:08
问题 I realize that this might be a stupid issue but I can't solve it for hours even if digged stackoverflow site and google throughly. Here is the base code in .bashrc to start gkrellm once I am logged into shell if ps ax | grep -v grep | grep gkrellm > /dev/null then echo "gkrellm is already running" else command gkrellm & fi I already used to try ... else nohup gkrellm & fi ... and ... else gkrellm $GK_PID=`pidof gkrellm` disown -h $GK_PID fi ... gkrellm is properly put as background job and I

Host is not allowed to connect to this mysql server when making a local connection [closed]

隐身守侯 提交于 2019-11-29 21:24:41
问题 When I try to connect with putty I get 'host is not allowed to connect to this mysql server'. Why is that happening? Host and client are on my machine. When I connect with the command line it connects. 回答1: You need to change how your configuration is set up. Comment out the skip-networking section within your MySQL config: # skip-networking , if you have skip-networking it will discard any TCP/IP connection which is likely why your failing. Once you have enabled your TCP/IP connections you

Google Cloud SSH Keys

自古美人都是妖i 提交于 2019-11-29 21:18:01
问题 I have set up my new server with Google Compute Engine. I added a user and their public key into the metadata in the Google Cloud console ( sshKeys ). I attempted to replace a public key in the metadata, but now the old one seems to be the only one able to ssh into my server (using PuTTY). The new one doesn't seem to be updated. Now, even if I remove the whole metadata or type gibberish text into the sshKeys field, it will still work! Could it be that it will require sometime for the metadata

Transfer files to/from session I'm logged in with PuTTY

只愿长相守 提交于 2019-11-29 20:33:29
I'm logged into a remote host using PuTTY. What is the command to transfer files from my local machine to the machine I'm logged into on PuTTY? This is probably not a direct answer to what you're asking, but when I need to transfer files over a SSH session I use WinSCP , which is an excellent file transfer program over SCP or SFTP. Of course this assumes you're on Windows. Sheshrao Wankhede Click on start menu. Click run In the open box, type cmd then click ok At the command prompt, enter: c:>pscp source_file_name userid@server_name:/path/destination_file_name. For example: c:>pscp

putty常用配置修改

丶灬走出姿态 提交于 2019-11-29 19:46:25
1、修改putty默认的颜色方案 初次使用putty时,发现默认的配色的方案看得非常难受,特别是黑色背景,深蓝色的字体,根本看不清楚,下面介绍如何更改默认的配色方案: (1)下载配置文件 首先下载注册表文件,链接如下: https://www.igvita.com/2008/04/14/custom-putty-color-themes/ 如何上所示,有两个方案供选择,下载到电脑端。 (2)安装注册表文件 对下载的注册表文件进行安装,双击运行然后安装即可: (3)检查是否安装完成 安装完成后,双击打开putty检查是否多出一个Session出来,如下: 如上所示,则该颜色的配置方案安装成功。 (4)输入服务器IP进行连接 点击Load按钮载入,然后输入相应的服务器的IP地址,点击Open按钮打开检查效果: 首先是默认的配色方案,如下所示: 然后,接下来是修改过的颜色方案: 颜色确实比默认的好看了点,但是感觉字体有点小,下面将会介绍如何修改字体大小。 (5)将Session保存 输入的服务器IP地址后,添加完成Session的名称后点击Save按钮将修改的后的方案进行保存,以后便可以直接打开了: 2、修改putty字体大小 默认的putty的字体比较小,下面简单介绍如何修改putty的字体大小或者方式: 在主页面下,点击Window下的Appearance选项,如下: