Active questions tagged putty - Super User most recent 30 from superuser.com 2018-12-10T15:36:58Z http://andreidionian.com/?id=feeds/tag?tagnames=putty http://www.creativecommons.org/licenses/by-sa/3.0/rdf http://andreidionian.com/?id=q/1185683 1 PuTTY fatal Error - Connection Refused user704439 http://andreidionian.com/?id=users/704439 2017-03-06T08:57:33Z 2018-12-10T11:00:55Z <p>I am connecting to remote server via SFTP using PuTTY.</p> <p>I am able to connect it from my local Windows 7 machine. However, when I connect it from Windows Server 2012 R2, it gives me following error -</p> <p><strong>PuTTY Fatal Error</strong> </p> <p><strong>"Network Error: Connection Refused"</strong></p> <p><a href="https://i.stack.imgur.com/HtUoG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HtUoG.png" alt="enter image description here"></a></p> <p>I am not sure whether it is related to SSH service/telnet service. Can someone help me resolve this issue?</p> http://andreidionian.com/?id=q/1382123 0 gpg-agent fordwaring on Windows using Gpg4win and PuTTY user3368561 http://andreidionian.com/?id=users/878547 2018-12-09T17:05:10Z 2018-12-09T17:05:10Z <p>I managed to get SSH forwarding to a Linux guest from a Windows 10 host using Gpg4win and PuTTY. I can successfully use my private key stored on an GnuPG smartcard connected on my host to login to remote SSH sessions from my guest.</p> <p>Now I need to forward the GnuPG agent (not only SSH one) to be able to encrypt and sign using my private key smartcard connected to my host from my guest.</p> <p>How can I do it?</p> http://andreidionian.com/?id=q/254534 0 ksh Auto-Completion PuTTY Configuration Nitrodist http://andreidionian.com/?id=users/28074 2011-03-07T21:47:20Z 2018-12-07T09:02:45Z <p>I'm having a bit of a problem configuring my <code>PuTTY</code> client to work with the auto-completion feature in the <code>ksh</code> shell.</p> <p>I do a listing on the root with the directories <code>/home</code> and <code>/homeroot</code> and it returns the directories in a list just fine. I can't select it, though, by hitting X = (where X is the number).</p> <pre><code>/home/nitrodist&gt;ls /h #hits esc + = 1) home/ 2) homeroot/ #hits 2 + = for the 'homeroot' dir 1) home/ 2) homeroot/ #hits just the '=' key. 1) home/ 2) homeroot/ </code></pre> <p>Any ideas? I've <code>su -</code>'d to another user who can actually do it with their PuTTY session and I can't do it there, which makes me think it's a PuTTY configuration issue. This is running on a ksh93 shell on HP-UX, if that makes any difference.</p> <p>Here's my ksh config:</p> <pre><code>/home/campbelm&gt;set -o Current option settings allexport off bgnice on emacs off errexit off gmacs off ignoreeof off interactive on keyword off markdirs off monitor on noexec off noclobber off noglob off nolog off notify off nounset off privileged off restricted off trackall off verbose off vi on viraw on xtrace off /home/campbelm&gt; </code></pre> http://andreidionian.com/?id=q/930844 0 Putty Window inactive after certain time user28724 http://andreidionian.com/?id=users/461213 2015-06-22T05:03:46Z 2018-12-07T00:02:40Z <p>I am currently processing on a server. I am using Putty to do this. As I am running multiple processes (8), I am using multiple cores as well. After a certain time (2-3 days) I get an error saying:</p> <pre><code>PuTTY Network Error: Software caused connection abort. </code></pre> <p>Then my Putty window's status turns to inactive. </p> <p>Here are my questions:</p> <ol> <li>Where does this come from?</li> <li>As most of my files have been processed, is it possible to reactivate Putty in order to continue the processing?</li> </ol> http://andreidionian.com/?id=q/1287014 1 Can I use other host instead of localhost for Destination Field in SSH Reverse Tunnel Port Forwarding? mannok http://andreidionian.com/?id=users/863899 2018-01-19T06:45:26Z 2018-12-06T19:23:47Z <p>I am using Putty to achieve SSH Reverse Tunnel Port Forwarding. Most of the tutorials are teaching me to forward remote port to localhost port. However, may I know is it make sense to input other host such as <code>192.168.1.132:8081</code> into the Destination field?</p> <p>I have tried to do that. <code>192.168.1.132:8081</code> is a working web server with a contented page, but I got <code>ERR_EMPTY_RESPONSE</code> when I visit <code>localhost:12345</code> (I set port <code>12345</code> as the source port) from the client device.</p> <hr> <p><strong>My Putty Configurations</strong></p> <p>Outgoing Proxy configuration:</p> <p><img src="https://i.stack.imgur.com/BQPa0.png" alt="Outgoing Proxy configuration"></p> <p>Tunneling config (the <code>Dynamic</code> one is for the Socks5 connection, please just ignore it; the <code>R12345</code> one is the tunnel that I am playing with):</p> <p><img src="https://i.stack.imgur.com/yZoZK.png" alt="Tunneling config"></p> <p>The result that I try to access the tunnel from the Destination (SSH Server):</p> <p><a href="https://i.stack.imgur.com/jQeKf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jQeKfm.png" alt="The result that I try to access the tunnel from the Destination (SSH Server)"></a></p> <p>Can anyone help me?</p> <hr> <p><strong>UPDATE 1</strong></p> <p>In the device that I am running SSH command, I am going out with via a proxy server. Is that affecting the reverse tunnel behavior?</p> <hr> <p><strong>UPDATE 2</strong></p> <p>I have tried to make the reverse tunnel from the http server directly. However, in the SSH server I can visit the website by <a href="http://localhost:12345" rel="nofollow noreferrer">http://localhost:12345</a>. Attched setting and result at below.</p> <p><a href="https://i.stack.imgur.com/9WZF4.png" rel="nofollow noreferrer">Same, http server needed to go out via my office's http proxy too!</a></p> <p><a href="https://i.stack.imgur.com/xGZER.png" rel="nofollow noreferrer">Create a reverse tunnel from http server</a></p> <p><a href="https://i.stack.imgur.com/9Wmdl.png" rel="nofollow noreferrer">And then I can visit the http server from SSH server via localhost:12345</a></p> http://andreidionian.com/?id=q/1341418 1 Can't connect via SSH from WIndows 10 northerner http://andreidionian.com/?id=users/699180 2018-07-19T06:56:39Z 2018-12-04T12:45:49Z <p>I'm trying to connect to another device on my local network: <code>192.168.0.55</code> with Putty. I can do it fine from one computer but another does not work. The one that does not work is running Windows 10 and only has the built in firewall and Windows Defender installed. This is the error message I get</p> <p><a href="https://i.stack.imgur.com/aanUk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aanUk.png" alt="error message"></a></p> <p>I tried adding rules to the Windows firewall to allow incoming and outgoing connections on port 22 but it didn't make a difference. It used to work fine. </p> http://andreidionian.com/?id=q/1378572 0 SSH connection with PuTTY to openSUSE on VMware VM times out Daniel Ritter http://andreidionian.com/?id=users/967357 2018-11-26T22:11:39Z 2018-12-03T19:34:45Z <p>I have installed openSUSE Leap 15.0 on VMware Workstation 15 Player and my attempt to connect with PuTTY times out without any more specific error message.</p> <p>The host machine runs Windows 10 and for "ipconfig /all" in cmd, I got the following IP address: VMware Network Adapter VMnet8 IPv4 Address: 192.168.50.1 (Preferred) Subnet Mask: 255.255.255.0</p> <p>I created a Network Adapter on the VM's guest operating system with static IP address 192.168.50.2 for eth1. openssh has been also installed, as I noticed that on other VM, where the PuTTY could connect, the following process was running: "/usr/sbin/sshd -D" and the VM's network adapter is set to Bridged because of the same reason. I could also ping 192.168.50.2 successfully.</p> <p>Could you please help me where did I miss something?</p> <p>Thank you for any repsonses. Any clear explanation is welcome, even if it just theoretically important.</p> http://andreidionian.com/?id=q/1380277 0 PuTTY freezing up Joe Gratz http://andreidionian.com/?id=users/969278 2018-12-02T22:50:15Z 2018-12-02T22:50:15Z <p>I tried to use PuTTY yesterday. I logged in through a pre-existing SSH connection, but the window froze up and would not let me do anything. Then after a few seconds, it gave me the error message saying that PuTTY had timed out. I tried logging in multiple times, and even to different servers, but sadly, each time yielded the same result.</p> <p>I was able to connect to the network a few weeks ago, but not yesterday. This is a school network and no changes have been made to it recently. I have made no significant changes to my computer recently either. I have no idea what to do beyond the instructions my professor gave me, and that is how I have been trying to do it.</p> http://andreidionian.com/?id=q/1140463 0 PuTTY Network Timeout Error Magpie101 http://andreidionian.com/?id=users/658179 2016-10-30T10:13:49Z 2018-12-02T02:02:35Z <p>I'm using PuTTY on my Windows machine to use SSH on my university server. I run analyses that take up to 3 days to complete. I can connect and start the analyses but eventually get an error message 'PuTTY Network Error: Software caused connection abort'. I have problem solved this - the issue lies with the period of inactivity on PuTTY where it is running the analyses. The network connections ect are all fine. At the moment the only way I can get the analyses to complete is to press enter every couple of hours. This really is annoying as I have to get up during the night! </p> <p>I'm not a computer whizz whatsoever and would really apprentice if anyone could suggest a solution. </p> <p>Thanks :) </p> http://andreidionian.com/?id=q/1371208 0 PuTTY ssh tunnel port forwarding through management server with private key Nikolai http://andreidionian.com/?id=users/956960 2018-10-30T09:53:39Z 2018-11-30T08:43:35Z <p>I'll try to be as detailed as possible.</p> <p>I try to connect to a server running ActiveMQ and want to forward the port 8161 to port 8162 on my local machine in order to prevent problems when I run a local instance of ActiveMQ on my machine.</p> <p>But to Access the ActiveMQ server I have to first connect to the management server which provides me with access to the network.</p> <p>On both the management and the ActiveMQ server are my public key for authentication on those servers using my private key.</p> <p>I am using Pageant in order to not always having to type in the password for the private key.</p> <p>Path: Local Machine -> Management Server -> ActiveMQ server</p> <p>Since I have to administrate and monitor many other servers this way, I wrote a batch script to access all those server directly with my private key. So naturally I would want to do this by using a script. <s>On the other hand my colleagues only occasionally connect to some of those servers and want to use a GUI - in this case PuTTY - to access them.</s></p> <p><strong>TL;DR</strong></p> <p>Port forwarding through jumpserver (SV_B) for port 8161 on target server (SV_C) to local machine (LM) on port 8162 using private key to authenticate on both SV_B and SV_C by using PuTTY on both CLI and GUI.</p> <p>LM:8162 -> SV_B -> SV_C:8161</p> <p><strong>UPDATE</strong></p> <p>I got the GUI part working:</p> <ul> <li>Session: Hostname/IP address = [Management Server]; Port = "22"</li> <li>Connection->Data: Auto-login username = "root"</li> <li>Connection->SSH: Remote command = "ssh -L 8162:localhost:8161 [AMQ Server]"</li> <li>Connection->SSH->Auth: Allow agent forwarding</li> <li>Connection->SSH->Tunnels: Source port = 8162; Destination = localhost:8162</li> </ul> <p>The question now is how do I translate that into a command that I can use in a script with the putty.exe</p> http://andreidionian.com/?id=q/1185618 1 How to delete a stored site in MTPuTTY gimp770 http://andreidionian.com/?id=users/678798 2017-03-06T02:15:56Z 2018-11-29T23:14:18Z <p>Is it possible to delete a server with MTPuTTY? With regular PuTTY this is possible, but I have not been able to find a button or shortcut to do this with MTPuTTY. I am using Windows 7.</p> http://andreidionian.com/?id=q/1324854 0 PuTTY on Windows 10 showing Connection Timed Out sumanth umesh http://andreidionian.com/?id=users/907482 2018-05-22T07:01:46Z 2018-11-29T21:00:47Z <p>I installed PuTTY on windows 10 to connect to a workstation. On entering the IP address it remains idle for a while and says Fatal Error, Connection Timed Out. I tried disabling my firewall and turning off my anti-virus(K7 total security) but still no use. Can anybody help resolve this issue? Another friend of mine was able to connect without any hindrance, even he has windows 10.</p> http://andreidionian.com/?id=q/1379051 1 SSH host key changed just after setting root password Fabian31415 http://andreidionian.com/?id=users/967909 2018-11-28T11:07:15Z 2018-11-28T16:29:32Z <p>This might sound super suspicious, but it just happened to me:</p> <p>I run a rented Raspberry Pi as my own mail server and today I set a root password to eventually login as root directly. I did not yet check whether the default configuration forbids root login. I exited the SSH session and restartet Putty to login as root.</p> <p>The access was denied and after restarting Putty again to login to the account which I usually use, the host seems to have changed its key and Putty warned me about this.</p> <p>Between setting the root password and getting the warning from Putty about the changed host key, less than two minutes passed. Also, I mostly trust the client machine, it is a quite freshly set up Windows 10 machine I got from my employer for work.</p> <p>Should I be concerned, that someone cracked my server in such a short time (I couldn't do it nearly that fast)? It would not make any sense to change the key after already having root access.</p> <p>What would be the best to do now? Should I contanct the data center operator to physically shut down my machine? Or should I just connect via SSH anyway?</p> http://andreidionian.com/?id=q/1295801 1 How do I stop Kitty from doing naughty AutoRelogin after resuming from Windows Sleep? I recall my Putty didn't do this. Where is password cached? htfree http://andreidionian.com/?id=users/442837 2018-02-17T07:57:39Z 2018-11-27T18:20:40Z <p>I recently switched from Putty to Kitty (on windows7) and now I notice that after Windows Resumes from Standby/Sleep that it Automatically logs me in again. I see in the SSH kitty shell window:</p> <pre><code>Using username "myusername". myusername@myip's password: Send automatic password </code></pre> <p>I have configured KITTY to use files instead of Windows Registry and am using the kitty_portable.exe binary. I have logging enabled but I always have "OMIT known password fields" CHECKED. So I would like to know WHERE is my PASSWORD being CACHED? And how can I disable this feature so that my password is no longer cached? Under Connection->DATA there is nothing set for Auto-login username and when username is not specified its set to PROMPT. Auto-login password is also NOT set. So would appreciate any help to disable password caching.</p> http://andreidionian.com/?id=q/1378497 0 SSH into EC2 instance: Operation timed out Robert http://andreidionian.com/?id=users/967078 2018-11-26T15:51:42Z 2018-11-26T18:20:15Z <p>I'm trying to ssh into my ec2 instance in order to deploy my MEAN-stack app but no matter what I'm receiving a timeout error. I've tried so many solutions that were posted in other StackExchange threads but to no avail. I am running macOS 10.14.1</p> <p>On my mac I've tried connecting via FileZilla, Cyberduck and even using command line arguments such as <code>ssh -v -v -v -i "&lt;pem-file-name&gt;.pem" ubuntu@ec2-18-207-106-113.compute-1.amazonaws.com</code> and <code>ssh ubuntu@ec2-18-207-106-113.compute-1.amazonaws.com</code>. Below is the error output from running either of these commands:</p> <pre><code>OpenSSH_7.1p2, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to ec2-18-207-106-113.compute-1.amazonaws.com [18.207.106.113] port 22. debug1: connect to address 18.207.106.113 port 22: Connection timed out ssh: connect to host ec2-18-207-106-113.compute-1.amazonaws.com port 22: Connection timed out </code></pre> <p>These are the solutions that I've tried that did not seem to work:</p> <ul> <li><p>Connecting on Windows 10 using PuTTY, FileZilla and command line, but also received the same timeout errors.</p></li> <li><p>Using a different MSI (first with Bitnami, then with Ubuntu)</p></li> <li><p>Firewall is disabled</p></li> <li><p>Resetting the default port in <code>/etc/ssh/ssh_config</code> and connecting to the new port</p></li> <li><p>Pinging <code>ec2-18-207-106-113.compute-1.amazonaws.com</code> and <code>18.207.106.113</code> is successful</p></li> <li><p>Running command <code>netstat -nat | grep 22</code> gives the below output</p> <pre><code>tcp4 0 0 192.168.254.17.56207 17.249.188.80.5223 ESTABLISHED 9e4be63389882253 stream 0 0 0 9e4be6338988231b 0 0 9e4be6338988231b stream 0 0 0 9e4be63389882253 0 0 9e4be63384ea2193 dgram 0 0 0 9e4be63384ea225b 9e4be63384ea225b 0 9e4be63384ea225b dgram 0 0 0 9e4be63384ea2193 9e4be63384ea2193 0 kctl 0 0 22 9 com.apple.netsrc </code></pre></li> <li><p>The EC2 security group has the following inbound rules set up: <a href="https://i.stack.imgur.com/nL3nd.png" rel="nofollow noreferrer">EC2 Security Group</a></p></li> </ul> http://andreidionian.com/?id=q/1311084 3 PuTTY Warning: The server's host key does not match the one PuTTY has cached in the registry Junchen Liu http://andreidionian.com/?id=users/678016 2018-04-05T14:50:17Z 2018-11-26T10:39:49Z <p>When using PuTTY connect to a new host, I often get the warning</p> <blockquote> <p>The server's host key does not match the one PuTTY has cached in the registry.</p> </blockquote> <p>after I press </p> <blockquote> <p>Yes</p> </blockquote> <p>PuTTY adds the server RSA key into the Windows 10's registry, and I will be able to login the remote server, and the warning won't appear again.</p> <p>I know the RSA key comes as pairs, both public and private. What I am trying to understand is which key did the server saved into my local machine, the server's public key I guess.</p> <p>Also when the PuTTY made the initial SSH connection to the server, how the server decides which key to forward? Assume the server has list of the public keys, is there a generic key for any client trying to make the connections?</p> <p>And where is this generic key stored on the server? under <code>/root/.ssh/ authorized_keys</code>?</p> http://andreidionian.com/?id=q/248099 41 A putty shortcut that automatically launches a profile? C. Ross http://andreidionian.com/?id=users/856 2011-02-20T13:21:42Z 2018-11-23T06:50:54Z <p>How can I create a putty shortcut that automatically launches a profile, so I can dial into a specific computer with one click?</p> http://andreidionian.com/?id=q/1377374 0 Can one use PuTTy to check if an IP is static? Ivy Bell http://andreidionian.com/?id=users/965978 2018-11-21T18:08:45Z 2018-11-21T18:43:28Z <p>I had a Comcast modem installed and it's supposed to be configured for a static IP. I'm trying to find a way to verify it is not set to get an address automatically via DHCP. I tried to do a <code>show run</code>, but I'm not seeing anything listed.</p> <p>Can I do this with PuTTy?</p> http://andreidionian.com/?id=q/1377360 0 putty - network is unreachable error suleymanyaman http://andreidionian.com/?id=users/965975 2018-11-21T17:08:34Z 2018-11-21T17:53:13Z <p>Yesterday I bought a cloud server from vultr.com (ipv6 version). I'm trying to connect to my server via PuTTy; however, when I entered the ip address of my server and hit enter, it gives the error "network is unreachable". I think that this problem's related to the server being ipv6 because I have never experienced a problem with ipv4 servers I bought from the same site. How can I solve this?</p> <p>Edit: I use Windows 10. </p> http://andreidionian.com/?id=q/477418 1 How to use Putty in Japanese? Archimedes Trajano http://andreidionian.com/?id=users/48455 2012-09-20T09:52:30Z 2018-11-20T06:01:00Z <p>I am trying to use Putty to connect to a Linux server that has a file system that contains unicode characters (specifically Japanese)</p> <p>My goal is to make it work the way it worked on Mac OS X Terminal app or the standard Gnome Terminal on Linux Mint.</p> <p>So what I have done successfully so far was connect to the server and get it to display properly when I use "MS Gothic".</p> <p>However, I "lose" my backslash character as MS Gothic maps it as a yen character. So using the MS Gothic approach isn't good enough.</p> <p>I tried to Google some fonts that would have Japanese characters, but none of them appear in Putty's drop down list as they are not monospaced fonts.</p> <p>So looking for someone to suggest another alternative approach that would work with Putty (i.e. not switching to a different SSH client)</p> http://andreidionian.com/?id=q/1125543 0 PuTTY X11 forwarding: Unsupported authorisation protocol sam yi http://andreidionian.com/?id=users/118385 2016-09-18T06:33:24Z 2018-11-17T19:00:55Z <p>I have a Ubuntu 14 running as the "Server" and am trying to use PuTTY on my windows machine as the "Client"</p> <p>On the Server: ForwardX11 yes ForwardX11Trusted yes</p> <p>On the Client: PuTTY Configuration: SSH->X11->Enable X11 Forwarding (ticked), with MIT-Magic-Cookie-1 Xming Server running</p> <p>PuTTY Event Log:</p> <pre><code>2016-09-18 01:02:24 Requesting X11 forwarding 2016-09-18 01:02:24 X11 forwarding enabled </code></pre> <p><strong>Command:</strong></p> <pre><code>xclock </code></pre> <p><strong>Result:</strong></p> <pre><code>PuTTY X11 proxy: Unsupported authorisation protocol Error: Can't open display: ubuntu3:10.0 </code></pre> <p>The above command records this in the PuTTY Event Log:</p> <pre><code>2016-09-18 01:20:22 Received X11 connect request from 127.0.0.1:60167 2016-09-18 01:20:22 Opened X11 forward channel 2016-09-18 01:20:22 Forwarded X11 connection terminated </code></pre> <p>I've tried uninstalling xauth using <code>apt-get purge xauth</code> then reinstalling <code>apt-get install xauth</code> </p> <p>Can anyone think of why this is not working? It was working a little while back... am not sure what changed!!?!</p> <p><strong>Command:</strong></p> <pre><code>sudo DISPLAY=localhost:11 XAUTHORITY=/home/&lt;username&gt;/.Xauthority xclock </code></pre> <p><strong>Result:</strong></p> <pre><code>PuTTY X11 proxy: Unsupported authorisation protocol Error: Can't open display: localhost:11 </code></pre> <p>When I try the same from a another Linux box, I get this error instead of Unsupported authorisation protocol:</p> <pre><code>X11 connection rejected because of wrong authentication. Error: Can't open display: ubuntu3:10.0 </code></pre> <p>I have 2 Ubuntu systems. Named Ubuntu2 and Ubuntu3. Everything seems to work on Ubuntu2. So I started comparing the two...</p> <p><strong>xauth list</strong></p> <p><code>Ubuntu2</code></p> <pre><code>ubuntu/unix:10 MIT-MAGIC-COOKIE-1 7c27c83c47f4b323a2855c67e1eeef63 ubuntu/unix:11 MIT-MAGIC-COOKIE-1 7c1aa456987ee9face9a35f8aa72acf3 ubuntu2/unix:0 MIT-MAGIC-COOKIE-1 50073df1fac06436a5e724d93730ef64 ubuntu2/unix:11 MIT-MAGIC-COOKIE-1 5860938ccf8af0e0f4a00c37ca51feb5 ubuntu2/unix:10 MIT-MAGIC-COOKIE-1 0fa58759ec8e78b735aa3528933464c0 </code></pre> <p><code>Ubuntu3</code></p> <pre><code>localhost:11 MIT-MAGIC-COOKIE-1 b6e1bf9dedae8b358133462e3d702547 ip6-localhost:11 MIT-MAGIC-COOKIE-1 b6e1bf9dedae8b358133462e3d702547 localhost:13 MIT-MAGIC-COOKIE-1 6fe13bad7d70320cf01c1d9ea76ab084 ip6-localhost:13 MIT-MAGIC-COOKIE-1 6fe13bad7d70320cf01c1d9ea76ab084 ubuntu3/unix:0 MIT-MAGIC-COOKIE-1 c4bf89ae06d1aca5f36993fe728a5d21 </code></pre> <p><strong>echo $DISPLAY</strong></p> <p><code>Ubuntu2</code></p> <pre><code>localhost:10.0 </code></pre> <p><code>Ubuntu3</code></p> <pre><code>ubuntu3:10.0 </code></pre> <p><strong>which xauth</strong></p> <p><code>Ubuntu2</code></p> <pre><code>/usr/bin/xauth </code></pre> <p><code>Ubuntu3</code></p> <pre><code>/usr/bin/xauth </code></pre> <p><strong>Something Strange</strong></p> <p>I started comparing different conf files between the two systems. And noticed ip6 was disabled on Ubuntu3 and not on Ubuntu2. So, I tried re-enabling ip6 on Ubuntu3 and no dice. So, I disabled it on Ubuntu2 and it broke X11 forwarding. I don't know why and how ip6 plays a role in this... can someone explain?</p> http://andreidionian.com/?id=q/96660 37 How can I keep a process alive after closing the putty session? prakash.panjwani http://andreidionian.com/?id=users/25203 2010-01-16T15:08:21Z 2018-11-17T16:34:24Z <p>I am using putty to interact with Linux server. I have started a process using putty. The process is running and will take 5-6 hours. I want that process to keep running after I close the putty session. How can I keep that process alive after closing the putty session? I do not want to keep the computer ON all the time. Is there any way to do this?.</p> http://andreidionian.com/?id=q/465925 4 Need to copy a file from unix box to windows folder using pscp command suraj http://andreidionian.com/?id=users/154359 2012-08-24T16:24:09Z 2018-11-17T11:00:02Z <p>I have a unix svr A:</p> <pre><code>username: uname password: pwd </code></pre> <p>then there are some files under <strong>/usr/local/jboss/configuration</strong> which are accessible only when a <strong>'sudo su'</strong> command is performed. (and the username changes to <strong>root@svrname</strong> ,also no password prompted for this command)</p> <p>Now, I am trying to execute the below command which is trying to copy the file available under <strong>/usr/local/jboss/configuration</strong> to my local machine.</p> <pre><code>pscp -pw pwd root@svrname:/usr/local/jboss/configuration/xyz.xml C:\Users\downloads\ </code></pre> <p>but this command prompts for password, m clueless. Please help!!</p> http://andreidionian.com/?id=q/1375473 1 Ubuntu 18.04 SSH VPS continually disconnecting MattR http://andreidionian.com/?id=users/962554 2018-11-14T22:08:48Z 2018-11-16T23:50:49Z <p>I have a Virpus VPS that is running Ubuntu 18.04. Since I got it a couple weeks ago, I have been having trouble staying connected via SSH. I am able to connect just fine, but it will seemingly randomly disconnect (at different intervals). After being disconnected, I usually have to wait a minute for it to allow me back in. I've used screen to keep my screen session up, and once I get in I can reattach to the screen without issues.</p> <p>I have tested it on three different networks on three different machines, two running Windows 10, and one running CentOS. On Windows I have tried using PuTTY, WinSCP, a Python SSH library called paramiko, and Git Bash for Windows. On CentOS, I just used the CLI ssh command. All with the same results. I have tried SSH-ing into different user accounts, but the issue persists. I have even tried on my phone (Android 6) using ConnectBot. No luck.</p> <p>PuTTY says: "Network error: Software caused connection abort"</p> <p>CentOS CLI says: <code>packet_write_wait: Connection to 198.167.140.11 port 22: Broken pipe</code></p> <p>I've tried setting Keepalives in PuTTY but this has no effect. Once I lose the connection, I am unable to ping the server, even from a different host. I.E. if I am SSH-ing into the server from Machine A, then I get disconnected, then I immediately go to Machine B and try to ping the server, I get no response. That seems to me like it's the server's fault. On the other hand, if I manually disconnect (cleanly), I <strong>can</strong> ping it.</p> <p>The Virpus support team says my SSH settings are fine and that they were able to keep a connection (on a Linux box) for at least an hour without problem, after which they manually disconnected. In other words, they can't replicate the problem.</p> <p>In an attempt to solve the issue, they changed the public IP of the server, but this didn't fix it. Their next step was to redeploy to another node, which seemed to work for a little bit, but now I'm still having the same issue. They told me all they could do now was to redeploy to another node. Since, they've already done this, I'm thinking that won't fix it.</p> <p>Does anyone have an suggestions? I can post any config info that you ask for, I just don't know what to post.</p> <p><strong>UPDATE</strong>:</p> <p>As requested, here is the output of <code>ufw status</code>:</p> <pre><code>Status: active To Action From -- ------ ---- 22/tcp ALLOW Anywhere 22 ALLOW Anywhere 80/tcp ALLOW Anywhere 443/tcp ALLOW Anywhere 443 ALLOW Anywhere 80 ALLOW Anywhere 80,443/tcp ALLOW Anywhere 22/tcp (v6) ALLOW Anywhere (v6) 22 (v6) ALLOW Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) 443/tcp (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6) 80 (v6) ALLOW Anywhere (v6) 80,443/tcp (v6) ALLOW Anywhere (v6) </code></pre> <p>And for good measure, here is the output of <code>iptables -L</code>: <a href="https://pastebin.com/GdScv2rv" rel="nofollow noreferrer">https://pastebin.com/GdScv2rv</a></p> <p><strong>UPDATE:</strong></p> <p>I've looked through auth.log and found that I consistently have the following messages consecutively:</p> <pre><code>Nov 10 03:47:04 &lt;hostname&gt; sshd[17618]: Failed password for root from &lt;ip_address&gt; port 44738 ssh2 Nov 10 03:47:05 &lt;hostname&gt; sshd[17618]: Received disconnect from &lt;ip_address&gt; port 44738:11: [preauth] </code></pre> <p>This is while I am ssh'd in as a different user (not root) but running sudo commands. The <code>&lt;ip_address&gt;</code> does not match my host or the remote server.</p> <p>It also appears that someone is trying to brute-force me because I get a bunch of messages in a row like this:</p> <pre><code>Nov 12 12:21:12 &lt;hostname&gt; sshd[20367]: Invalid user demo from &lt;ip_address&gt; port 49709 Nov 12 12:21:15 &lt;hostname&gt; sshd[20367]: pam_unix(sshd:auth): check pass; user unknown Nov 12 12:21:15 &lt;hostname&gt;sshd[20367]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=&lt;ip_address&gt; Nov 12 12:21:17 &lt;hostname&gt; sshd[20367]: Failed password for invalid user demo from 193.105.134.97 port 49709 ssh2 Nov 12 12:21:17 &lt;hostname&gt; sshd[20367]: Disconnecting invalid user demo &lt;ip_address&gt; port 49709: Change of username or service not allowed: (demo,ssh-connection) -&gt; (root,ssh-connection) [preauth] </code></pre> <p>There are about 1500 and they all use different usernames. I have blocked the IP addresses in <code>ufw</code>.</p> <p>There are also a number of <code>Failed password for root from</code> IP addresses that do not match any of mine.</p> http://andreidionian.com/?id=q/1009015 2 Automate putty via batch and execute a command Asheesh Kubde http://andreidionian.com/?id=users/529614 2015-12-04T10:21:44Z 2018-11-16T17:02:20Z <p>I use <code>putty</code> everyday to login to a Linux session and execute some commands.</p> <p>Now since I have a thought to automate this process, I would like some help to complete this process.</p> <p>I have made a batch file which contains the below commands:</p> <pre><code>Start putty.exe abc@1.1.1.1 22 -pw 1234 </code></pre> <p>Using this script I am able to open a <code>putty</code> session. </p> <p>Now I want it execute my next command as well:</p> <pre><code>ps -eaf|grp sometext </code></pre> <p>Can you please help me to achieve this?</p> <p>It's a huge challenge for me.</p> http://andreidionian.com/?id=q/1375883 0 PuTTY Fatal Error - Software caused connection abort akgren_soar http://andreidionian.com/?id=users/671079 2018-11-16T04:57:29Z 2018-11-16T08:29:14Z <p>I'm using Putty 0.70 64bit client on my windows 10 to connect to odroidXU4 running ubuntu 18.04 minimal(XU4-20180531) and openssh-server (>= 1:7.6p1-4ubuntu0.1)</p> <p>I am able to constantly replicate the PuTTY Fatal Error (Network Error: Software caused connection abort) by two ways:</p> <p>The first way is by using <code>cat</code> on a 70kb text file with 450 lines. PuTTY will partially display the output, hang for awhile, before showing the error.</p> <p>The second way is to open up vi/vim/nano on a 9kb config file with 263 lines and hold the pageDownKey/RightArrowKey for some seconds. In this case, PuTTY also hangs before showing the error.</p> <hr> <p>However, the disconnect can be avoided when i use <code>less</code> instead of <code>cat</code>. Similarly, it can also be avoided by pressing the pageDownKey/RightArrowKey slowly, one key at a time.</p> <p>My guess is that there could be a problem in the bufferring, transmission or display, where a larger amount of input/output than usual being send/received in small bursts might be causing the software error.</p> <p>Does anybody face the similar issue?</p> <p>Are there any configurations or workarounds that can potentially solve this issue?</p> <hr> <p>Update 1:</p> <p>I used the windows built in ssh client to no avail.</p> <p>Openssh-server 1:6.7pl-5 on an OMV3 image (debian jessie) doesn't have this issue. Will try to install an older version of openssh-server.</p> http://andreidionian.com/?id=q/650778 0 VNC via socks SSH proxy tunnel suuser http://andreidionian.com/?id=users/214403 2013-09-26T18:47:09Z 2018-11-15T18:42:49Z <p>I can connect to my private work network using Putty with the following settings:</p> <ul> <li>Hostname: <em>login.example.com</em></li> <li>Port: 502</li> <li>SSH Forwarded Ports: D8888</li> </ul> <p>This opens an SSH socks proxy which allows me to access internal servers. I again use Putty to connect to the internal Ubuntu server using the socks proxy above.</p> <p>Now I want to get the server GUI using VNC, but I am unable to connect with the socks proxy. I tried forwarding the ports, but since I am newbie to this, I may have done it incorrectly. So how can I run VNC from my Windows machine to access the remote VNC server?</p> <p><a href="http://rbgeek.wordpress.com/2012/06/25/how-to-install-vnc-server-on-ubuntu-server-12-04/" rel="nofollow noreferrer">This article</a> did not help me to connect using <code>vncserver</code>. RDP isn't working, either. The VNC session is on a different server accessible only from <em>login.example.com</em> as a socks proxy.</p> <p>Note: I am able to SSH to the internal servers using the configuration above with the <em>login.example.com</em> as socks proxy in Putty.</p> http://andreidionian.com/?id=q/1247947 4 How to name openssh public and private key pairs? I-GaLaXy-I http://andreidionian.com/?id=users/694934 2017-09-06T15:25:38Z 2018-11-12T16:01:39Z <p>I am using public/private key pairs for a long time now. And nearly the same time I'm asking myself over and over again, which file extension I should use. It seems to be that at least for the public and the private(openssh) keys is no convention at all?</p> <p>I mean in PuTTy there is a special extension <code>.ppk</code> for "PuTTy Private Key" and the public key is stored either without an extension, or with <code>.pub</code>. I personally prefere not to use <code>.pub</code>, because Microsoft is using this extension already for MS Publisher. So for PuTTy I store both keys with the same name and add <code>.ppk</code> to the private and nothing to the public key. And for that case I can live with that. I can identify which key is the public and which the private one and that the private one is for PuTTy only.</p> <p>But what should I do with the private openssh key? Just store it without an extension? Or use something like <code>.openssh</code>? Also if there is no convention really, if someone just thought about that and sorted out some sort of concept for himself, I would also appreciate that...</p> <p>Thanks in advance!</p> http://andreidionian.com/?id=q/1030386 1 CentOS 7 Minimal Installation on Hyper-V: X11 forwarding using Xming and PuTTy error, xhost: unable to open display ":0.0" Mario Echeverría http://andreidionian.com/?id=users/549013 2016-01-23T16:00:42Z 2018-11-12T12:23:10Z <p>Before telling me that there are a lot of post relates to X11 forwarding error, let me put you in context of the things that I have done:</p> <p>I have installed the following packages:</p> <pre><code>yum install -y xorg-x11-app* yum install -y xorg-x11-server-utils yum groupinstall -y 'X Window System' yum install -y xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils xterm yum -y groupinstall fonts </code></pre> <p>Also I uncommented the following setting in<code>/etc/ssh/ssh_config</code></p> <pre><code>X11Forwarding yes </code></pre> <p>On my Windows 8 PC, I ran Xming. Then I checked "Enable X11 forwarding" on PuTTy, and set the X display location to ":0.0". Then I opened PuTTy again and connected to my virtual machine. Then I ran the following:</p> <pre><code>xhost + export DISPLAY=:0.0 xclock </code></pre> <p>This is the resulting error:</p> <pre><code>Error: Can't open display: :0.0 </code></pre> <p>Does somebody have an idea what I am doing wrong or what else do I need to fix that problem? Let me tell you that I have done this before but only for CentOS 7 Desktop Installation and it wasn't hosted on a Hyper-V VM.</p> <p>Thanks in advance.</p> http://andreidionian.com/?id=q/1374701 0 Putty not connecting via command line - Network error: connection timeout [duplicate] Rogério Dec http://andreidionian.com/?id=users/905372 2018-11-12T12:15:45Z 2018-11-12T12:15:45Z <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/1298580/putty-shortcut-using-target-how-to-specify-port" dir="ltr">PuTTY shortcut using target: How to specify port?</a> <span class="question-originals-answer-count"> 1 answer </span> </li> </ul> </div> <p>I can usually connect my server via SSH using the Putty.exe interface:</p> <p><a href="https://i.stack.imgur.com/tD3vB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tD3vB.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/xjEy9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xjEy9.png" alt="enter image description here"></a></p> <p>But when trying the same via command line:</p> <pre><code>"C:\Program Files\PuTTY\putty.exe" -ssh myuser@mysite.com:2222 </code></pre> <p>I get this error: </p> <p><a href="https://i.stack.imgur.com/RqTK4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RqTK4.png" alt="enter image description here"></a></p> <p>What's wrong?</p>  Microsoft office activator |  windows activation crack |  windows product key |  windows 10 product key |  windows 7 ultimate product key |  windows 7 keygen |  activate office 2010 |  office Project keys |  project professional product key |  office 365 office 2016 office 2013 key |  office 2016 office 2013 key |  windows 7 professional product key |  windows 8 professional product key |  windows 10 professional product key |  office 2016 professional product key |