SSH service got stopped in google cloud mistakenly now unable to connect to the google cloud instance.  Is there any possible way to restart SSH service as I am not able to login into the instance via. google cloud default ssh browser.  Kindly help as its urgent need to make some change on instances immediately  Thank you
120928
I made a mistake in the script of a service in my linux VM in Google Cloud Platform. Now the VM does not boot properly, and no ssh server starts.   Is there any other way to rescue this instance and its files, like, somehow edit files without starting the instance?  Maybe somehow download a snapshot and use some tool to edit?
726
I'm having some issues SSH'ing to a server when logged into a particular VM.  From my local PC, I can log in to the server just fine using the command ssh -i .ssh/[my private key] username@domain.  If I then SSH into another unrelated server which also has the same private key and run the above command it will also log in just fine in to the server.  But, when I SSH into a particular OpenStack VM (again has the same private key) on the unrelated server and then SSH in to the server from there I start getting prompted for a passphrase. But a passphrase hasn't been set for the key so inevitably I get a "Permission denied (publickey)." error.  To double check, I removed the private key from the VM and scp'd the private key from my PC into it again and tried the same command I still get prompted for a passphrase.  In other words:   PC - SSH - Server1 = Works fine  PC - SSH - Server2 - SSH - Server1 =     Works fine  PC - SSH - Server2 - SSH - Virtual Machine - SSH - Server 1 =         Asks for a passphrase   What could be the reason behind this? It's definitely the right private key I'm using and it has the appropriate permissions.  Edit - Output of ssh -v -i .ssh/[my private key] username@domain as requested  OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 58: Applying options for * debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /.ssh/[my private key].ppk type -1 debug1: key_load_public: No such file or directory debug1: identity file /.ssh/[my private key].ppk-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000 debug1: Authenticating to xxx.xxx.xxx.xxx:22 as '[my username]' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server-&gt;client cipher: chacha20-poly1305@openssh.com MAC: &lt;implicit&gt; compression: none debug1: kex: client-&gt;server cipher: chacha20-poly1305@openssh.com MAC: &lt;implicit&gt; compression: none debug1: kex: curve25519-sha256@libssh.org need=64 dh_need=64 debug1: kex: curve25519-sha256@libssh.org need=64 dh_need=64 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:ZiugTjR5fM0E3evOwHoePFKspDQChA0Ab6L0q88KP/g debug1: Host 'xxx.xxx.xxx.xxx' is known and matches the ECDSA host key. debug1: Found key in /home/centos/.ssh/known_hosts:2 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=&lt;rsa-sha2-256,rsa-sha2-512&gt; debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Trying private key: /.ssh/[my private key].ppk Enter passphrase for key '/.ssh/[my private key].ppk': Enter passphrase for key '/.ssh/[my private key].ppk': Enter passphrase for key '/.ssh/[my private key].ppk': debug1: No more authentication methods to try. Permission denied (publickey).
52681
I was trying to shutdown my PC through SSH. I executed  sudo shutdown now  The user was logged-out and Ubuntu starting turning off, but it froze at the last screen with the Ubuntu logo and the loading dots. Any idea where the problem might be?  Also, what's the difference between shutdown and halt? What other similar commands are there?
89024
I lost my password to a VM running 11.04, but have ssh access via public key authentication.  Is there any way I can reset the password without a reboot? (This is to avoid downtime of services it's running.)
74746
How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work).    I've had the problem for years on different versions of the operating system. It happens in virtual machines and on real metal. The same problem exists with sudo shutdown now, too.  I've lived with it in the past. The difference now is I don't want to just hit the power button because I might lose data.
82996
I can stop it using  /etc/init.d/apache2 stop   But when I want to start it again using:  /etc/init.d/apache2 start   I get this error:  Starting web server apache2                                                  /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information.                                                                          [fail]
21917
I am working with some Amazon EC2 servers that are up and running, and I need to SSH into the servers. I don't have any keys that were generated when the servers were first set up (someone else did it long before I got here). Can I still get into the servers without the key files?  FWIW I've tried a lot of things to SSH into the box so far, including generating new key pairs in the EC2 dashboard, and nothing seems to be working.  and  seem to indicate that I'm out of luck unless I want to make an AMI of my current server and then use it to instantiate a whole new EC2 server instance (just to get the .pem file generated at that time). Is that really the only way I can get into the box at this point?!
87696
When I was restarting the apche2, I was getting this message..   sudo service apache2 restart  * Restarting web server apache2                                                                                                                AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message   and when I was typed the localhost/phpmyadmin, it showing the message      -NOT FOUND The requested URL /phpmyadmin was not found on this server. Apache/2.4.7 (Ubuntu) Server at localhost Port 80   Please help me in this.
15404
Since August 1st I've been getting this error when trying to login to my gmail account:     Temporary Error (500)      We’re sorry, but your Gmail account is temporarily unavailable. We apologize for the inconvenience and suggest trying again in a few minutes.      If the issue persists, please visit the Gmail Help Center »      Try Again Sign Out      Hide Detailed Technical Info   Numeric Code: 93   I've emailed Gmail support several times with no response after their autoresponder, and I've posted to the .  Absolutely no response.  It's been more than 10 days now, and I'm starting to get desperate!  Can anyone give me any ideas for how I might get this issue resolved.  If any Googlers happen to read this &ndash; you'll receive much good karma if you notify one of the engineers of my plight! :-)
80794
Local Computer (Fedora)  --SSH--&gt;  Server1  --SSH--&gt;  Server2   In some environments I work in, we have to use "jump boxes" where you ssh to one server in order to get to another server. Is there a quick way to do this, perhaps by editing ~/.ssh/config, such that whenever I ssh to Server2 from my local computer, it automatically creates the necessary connection to Server1? I can setup keys so that I'm not prompted for a password to Server1 if necessary.
15102
What can I do to configure SSH on both client and servers to prevent Write Failed: broken pipe errors? It often occurs if you sleep your client computer and resume later.
104257
What is the best way to SSH to my sever behind company proxy , it seems that 22 port is not opened by default , is there any simple way to do that rather than to install corkscrew ??   When I do :   ✗ ssh -i ~/.ec2/mykey.pem ubuntu@XX.XX.XXX.XXX ssh: connect to host XX.XX.XXX.XXX port 22: Operation timed out
78415
I am planning to do a fresh install of ubuntu 11.10 in my system. Before that i have setuped key based ssh authentication in this machine. Is it possible to take backup of those ssh keys, so that i  can use that in my new installation. Or else i must setup keybased ssh authentication again? If i can take backup, what are the files i need to copy? Can someone explain it in detail pls. Thanks in advance.
116941
I configured my Google account on El Capitan (OS X 10.11.2) using Internet Accounts and it worked fine for a while. However, after a restart the system asked again for the password and 2-factor authentication code, which I provided, but then I get stuck in the following window after entering my password and code:    In the above window, if I hit Cancel and then try to select anything in the Google account I get the message "Unable to verify account name or password."  If I delete the account and add it again I'm asked for my password and 2-factor authentication code, but after providing them I get stuck in the following window - notice that the Done button turned grey after pressing it, and the dialog never closed after that:     I already tried starting my system in safe mode, with the same results. What's happening? Any help will be greatly appreciated!
119856
I set up my ssh stuff with the help of , and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that I'm still using the same home directory.  $ cat .hg/hgrc  [paths] default = ssh://hg@bitbucket.org/tshepang/bloog  $ hg push Enter passphrase for key '/home/wena/.ssh/id_rsa':  pushing to ssh://hg@bitbucket.org/tshepang/bloog searching for changes ...
80365
Is there a way to unlock and lock screen from command line, via ssh? I know /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend command, but it doesn't seem to work via ssh. The perfect solution would be a command, that I could type logged via ssh and it would unlock the screen or lock it back again, so I don't need to tell anybody my password, if he wants to use it. Is there any builtin tool, that would provide such functionality?
114794
My machine recently stopped accepting incoming public key authentication.  I have an ubuntu 11.04 desktop that I ssh into from a windows machine.  I use putty with pageant.  I am able to connect but only with interactive password authentication, not with my rsa key that I have setup.  I have already verified that the key is listed in ~/.ssh/authorized_keys.  How do I fix this and what do I check?