I accidentally deleted /etc/ssh/ssh_config file.  I've tried purging and re-installing openssh-server and ssh but the file doesn't return.  How would I restore this file?
82658
By accident, I messed up a configuration file. How do I recover the default version without reinstalling or affecting other things?
91963
My /etc/ssh/sshd_config file has a line like:  AllowUsers jim@11.22.33.456   If I want to allow jim to use another IP addresses, how do I specify it?   Does it take the form of a comma separated list? Or, do add a similar line like   AllowUsers jim@new-ip-address   ?
31871
How do I add "-X" into my ssh default option? i.e., when I type ssh A.B.C.D, it should really do ssh -X A.B.C.D  I can alias it, but is there a more "elegant" solution to do that in .ssh/config file?
7754
I accidentally deleted a file from my laptop. I'm using Fedora. Is it possible to recover the file?
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.)
14499
Recently I accidentally did rm on a set of files and it got me thinking where exactly these files end up?  That is to say, when working with a GUI, deleted files go to the Trash. What's the equivalent for rm and is there a way of undoing an rm command?
47425
I have an SFTP setup using the built-in sftp-subsystem of OpenSSH with chrooted users.  In the old days when I used to use FTP, I was able to see what files were accessed by users in the logs.  How do I achieve the same using OpenSSH/SFTP?  Relevant parts of my /etc/ssh/sshd_config:  Subsystem sftp internal-sftp Match group sftponly     ChrootDirectory /home/%u     X11Forwarding no     AllowTcpForwarding no     ForceCommand internal-sftp
107107
Supposedly this console command will add my private SSH key to the , as discussed in  on the Question, :  ssh-add -K path-to-my-private-key-for-SSH   If that succeeds…  ➥ What is the type and name of the entry to be found in the ?  I would like to be able to manually verify and possibly delete that entry.
97003
As you can see I'm missing libcrypto and libssl files. I locked out myself from my server after running apt-update and apt-upgrade, I'm running this from web console, because ssh nor any other program won't work because of missing SSL files.  I tried removing and installing apt install openssl so did libssl-dev and/or compiling own openssl from a distro. None of these create the needed .so files, I ran locate, those files are not present anywhere on the server. There's also libssl1.0.0 which cannot be reinstalled and removing it would cause removal of 700MB of packages that would literally kill server and delete all data.
13323
If I'm logged in to a system via SSH, is there a way to copy a file back to my local system without firing up another terminal or screen session and doing scp or something similar or without doing SSH from the remote system back to the local system?
10715
Apparently, I shouldn't have spent sleepless night trying to debug an application. I wanted to restart my nginx and discovered that its config file is empty. I don't remember truncating it, but fat fingers and reduced attention probably played their part.  I don't have backup of that config file. I know I should have made it.  Good for me, current nginx daemon is still running. Is there a way to dump its configuration to a config file that it'll understand later?
66989
I guess my question is closer to "How would I go about editing a .conf file from a remote connection via an ssh terminal?"   I downloaded an ssh emulator to my iPhone which works fine and dandy, and I can ssh to my computer at home via DNS services. Right now I'm trying to annoy my room mates who are home right now my getting my machine to beep.  In order to do that I need to edit /etc/modprobe.d/blacklist.config. I tried sudoedit but I got no text.  Anything graphical is out of the question, because I'm essentially in a dedicated terminal like if you pressed Ctrl+alt+F1.
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 ...
63651
I'm using ubuntu 9.10 and accidently deleted a specific file within a directory on my system. I checked in the Trash bin and could not locate the file. I deleted it 10mins ago, are there any tools available that I can recovery this file? It's a really important file.  Any help would be highly appreciated  My partition is ext4
6338
So the default Ubuntu SSH banner has some cool stuff, mainly that it shows the packages that can be updated and whatnot. So I want to preserve those values, while customizing the rest of it.  I've already seen that I can point sshd_config to the file that would contain the text. I'm just unclear what commands will produce the update text.   For the record, what I'm talking about is this:  0 packages can be updated. 0 updates are security updates.   Help would be appreciated. Thanks so much.
65697
I accidentally executed the following command on the etc directory:  sudo chmod -R 700 /etc   I know that I have done something very wrong. My terminal now prints:  I have no name!@ubuntu: /$   How can I revert my etc directory to its earlier state?  I tried changing the permissions but it is failing now. Also, it would be very helpful if someone can explain what actually went wrong when I executed that command on etc. It was only file permissions. Then why does the whole system seems completely blown up? Why is it that no login passwords are working now? I know that there is a file in etc directory that has to do with users. But how did changing permissions jeopardize everything? Some technical details about this would be very helpful.
85798
Well, I have accidentally deleted my Ubuntu drive. I just want to recover all the contents of /home.   Is there a way to do it? I referred to , where I need to specify the extensions of files. And in my case, I don't know actual extensions. So, is there any utility which can let me recover my /home folder alone?  I have not even formatted that drive or touched it at all. So no write has been done on that drive.  If you have suggestions on how to recover, please tell me.