General :: Possible To 'include' A Global SSH Authorized_keys File?

Apr 22, 2010

Is it possible to 'include' a global SSH authorized_keys file?

For example, I have user accounts user1,user2,user3 and my user name is Benjamin. I want to be able to use my ssh key to authenticate as each of these users. I can manually copy my key to each .ssh/authorized_keys file individually, but is there a way to simply include /home/Benjamin/.ssh/global_authorized_keys in each of these user's authorized_keys file without manually adding and removing?

View 2 Replies


Debian :: Openssh-server Doesn't Check Into "authorized_keys" File

Jul 22, 2010

I have two Debian 5 servers which running on both the same version of OpenSSH (5.1p1) and OpenSSL (0.9.8g).

One week ago, I set ssh keys on both of them and create the file "authorized_keys". I was able to connect on each server via SSH without password (which is the purpose of ssh keys) but I had an issue with the SSH service and I had to restart one of my server. And since this time, when I try to connect to my other server with the same ssh command, the command ask me to type the password...

This is the result of the ssh command (with the argument -v):

OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to MY_SERVER [] port 22.
debug1: Connection established.


View 11 Replies View Related

General :: Make Shared Keys .ssh/authorized_keys And Sudo Work Together?

Jul 15, 2010

I've setup the .ssh/authorized_keys and am able to login with the new "user" using the pub/private key ... I have also added "user" to the sudoers list ... the problem I have now is when I try to execute a sudo command, something simple like:

$ sudo cd /root

it will prompt me for my password, which I enter, but it doesn't work (I am using the private key password I set)Also, ive disabled the users password using

$ passwd -l user

I am trying to harden my system ... the ultimate goal is to use pub/private keys to do logins versus simple password authentication. I've figured out how to set all that up via the authorized_keys file.Additionally I will ultimately prevent server logins through the root account. But before I do that I need sudo to work for a second user (the user which I will be login into the system with all the time).

For this second user I want to prevent regular password logins and force only pub/private key logins, if I don't lock the user via" passwd -l user ... then if i dont use a key, i can still get into the server with a regular password.But more importantly I need to get sudo to work with a pub/private key setup with a user whos had his/her password disabled.

1) I've adjusted /etc/ssh/sshd_config and set PasswordAuthentication no This will prevent ssh password logins (be sure to have a working public/private key setup prior to doing this

2) I've adjusted the sudoers list visudo and added

root ALL=(ALL) ALL

3) root is the only user account that will have a password, I am testing with two user accounts "dimas" and "sherry" which do not have a password set (passwords are blank, passwd -d user)

The above essentially prevents everyone from logging into the system with passwords (a public/private key must be setup). Additionally users in the sudoers list have admin abilities. They can also su to different accounts. So basically "dimas" can sudo su sherry, however "dimas can NOT do su sherry. Similarly any user NOT in the sudoers list can NOT do su user or sudo su user.

View 3 Replies View Related

General :: Create Symlink For Every File Want To Include?

Jul 4, 2010

I have a CMS I have developed, which will run on several sites all hosted in sub directories on my dedicated server. I want to create symlinks for the main files of the CMS, including all config files, functions and admin sections. Then there will be a few files specific to each site.I read some tutorials on creating symlinks, although most are not very good in my opinion.

Do you have to create a symlink for every file I want to include? Or can I just create a symlink to a directory? For example:CMS is located at /www/cms/.Can I make www/domain1/ point to that directory, and if so, will all files include themselves correctly. I think I am a bit confused on how this works.

View 1 Replies View Related

General :: Include File Name To Extracted Files?

Apr 28, 2011

I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions. now the result is one huge .txt file with all the contents of other .txt files

how can i add the File Name as a comment before each file?


cat `find ${system} -name '*.txt'` > outputFileDirectoryName.txt

View 13 Replies View Related

General :: Include Vim Settings In Source Code So That The File Is Displayed The Same Way?

Feb 15, 2011

I vaguely remember that there is a way to store instructions for vim in my file (like tabstop width etc). I'm not speaking of settings in vimrc but of storing those settings with in the file to be edited. That way the tabstop has always the right width even if I transfer this file to another computer. However, I can't remember what the magic word is so that vim picks up those settings when loading the file.

View 1 Replies View Related

Security :: Centralized Authorized_keys (AuthorizedKeysFile) For Sshd

Mar 9, 2010

I have a RHEL server with users logging in via ssh. I want to start using public keys instead of passwords with ssh. But public key is as good as a rotten tomato if it is unpassphrased and I cannot guarantee that all users will use passphrases. Therefore I will generate both private and public key on the server and will distribute the private key to the user via user-friendly web interface and thats where I will force them to use passphrase. I know they can change later the passphrase or remove it totally but my users are not so advanced.

So now I am trying to setup a centralized authorized_keys file with to be able to make them only root writable so they cannot put their own public keys on the server , it will be handled by scripts. Now the actual problem. I created /etc/ssh/keys directory instead of ~/.ssh and changed AuthorizedKeysFile to /etc/ssh/keys/%u in sshd_config But when I try to connect with the key I get the following error in the logs (after enabling DEBUG3 in sshd_config)

Mar 8 15:22:28 stagesmpp sshd[12248]: debug3: mm_request_receive entering
Mar 8 15:22:29 stagesmpp sshd[22358]: debug2: channel 0: rcvd adjust 33544
Mar 8 15:22:30 stagesmpp sshd[12248]: debug3: monitor_read: checking request 20


View 2 Replies View Related

Ubuntu :: Difference Between /usr/local/include And /usr/include?

Jul 11, 2010

What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?

View 1 Replies View Related

Software :: Difference Between /usr/include And /usr/local/include?

Jul 8, 2010

I just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib

View 2 Replies View Related

Fedora :: Making SH File Into Global Command

Mar 22, 2011

I used to be able to put a .sh file into a folder to make it into a global command.

Instead of typing:
/home/user/tool/conversion/ /home/user/mkv/thisone.mkv

I could type:
convertmkv /home/user/mkv/thisone.mkv

Where to hide my executable .sh files to make this work?

View 6 Replies View Related

CentOS 5 Server :: Configure Global File System?

May 17, 2010

I need to enable GFS for a shared storage file system, I need to share it to different ip's so that every one get syn data on that file system

ex : /data on

I need /data to be in GFS and need to share to &

so that this two machines can have sync file system

/data is in shared storage

View 1 Replies View Related

Networking :: No /usr/include/usb.h Header File?

Dec 16, 2010

I was trying to install usb-modeswitch edora-14 (64 bitt saidCode:usb_modeswitch.c:56:17: fatal errr: usb.h: No such file or directoryWhen I tried to install libusb, it said that it is already installed and is the latest version. But, it still doesn't show usb.h in /usr/include directory.What shall I do to make usb-modeswitch?

View 4 Replies View Related

Debian Programming :: HTML5 - How To Include Another File

Jun 15, 2013

I am trying to re-write my local web pages in HTML5. My original pages used an include file so that I had a consistent set of links on the top of each page. I used - require("link_list.php");

But this does not seem to be possible in HTML5. I am guessing that there is a way to do this, searching the web suggests object or embed, but these create a new page within my original page, which is not what I want.

View 4 Replies View Related

Programming :: QT #include <QGLWidget> No Such File Or Directory

May 30, 2011

I have installed QT on Slackware 13.37 x64 and when I create gui project it works ok, but I need OpenGL.When I add #include <QGLWidget>I get error No such file or directory there is my env




View 2 Replies View Related

OpenSUSE :: Compiling - Can't Find A Header File In /usr/include/gtk-2.0/?

Mar 11, 2011

Compiling Amarok from git gives error "gdk-pixbuf/gdk-pixbuf.h: No such file or directory" it is installed in /usr/include/gtk-2.0/gdk.I just up'ed to openSuse 11.4 and KDE 4.6.1 - compiled fine last time I tried which was probably last weekend or so (March 2nd or third)Wondering if /usr/include/gtk-2.0/ is new in 11.4 because of the upcoming gtk3.0 and the problem is it's not some path and not being compiling proficient I'm a bit lost.full error

/home/smiley/MyTemp/amarok/src/core-impl/collections/ipodcollection/handler/IpodHandler.cpp:35:35: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory


View 1 Replies View Related

Programming :: Unable To Open Include File 'sstream.h'

Jan 28, 2010

i got this error im using turbo c++ 3.0.

View 1 Replies View Related

Ubuntu Multimedia :: Rework An .avi To Include Hard Subs From A .srt File?

Jun 29, 2011

Is it possible to rework an .avi to include hard subs from a .srt file I would really like to do this with ffmpeg but it seems that -newsubtitle doesn't work for me.
This is the command line so far ffmpeg -i infile.avi -vtag xvid -b1550k -r 23.970 -newsubtitle -acodec libmp3lame -ac 2 -ab 128k -ar 48000 outfile.avi

View 1 Replies View Related

Ubuntu Servers :: Apache Include Hostname In Access.log And Error.log File Names?

Feb 8, 2010

I am sure this information is out there somewhere, but Googling apache access.log and hostname does not give you any good leads... so I hope someone here might be able to provide me with a quick answer...I am setting up a cluster of web servers, so I would like to name the access.log and error.log with the hostname of the individual servers to be able to distinguish one from another.

View 4 Replies View Related

Programming :: (.text+0x7): Undefined Reference - Compiling Program Include One Header File And 2 C

May 21, 2011

i am a new programer in c i have write a simple app and i have a problem with combiling my program include one header file and 2 c

void f();
void f(){

View 6 Replies View Related

OpenSUSE Network :: Use Own Global Template For Akonadis $HOME/.local/share/akonadi/mysql.conf File?

Apr 7, 2011

I am looking for a way to set a default for new users for the akonadi mysql.conf file that is created for each user for the akonadi database. Usually this file contains a inno_db_log_file_size of 64MB. Because of this the database eats up 64MB storage even if its still empty. I would like to decrease this size globally for each "new" user since we have very tight storage restrictions on our NFS home directories now. And 64MB make up already have the quota each user has. So this is to much. where is this default mysql.conf file taken from?

I found hints that there used to be a /usr/share/config/akonadi/mysql-global.conf file that was simply copied but I cannot find such a file on my 11.4 system. It seems things have changed. how akonadis user specific mysql.conf file in ~/.local/share/akonadi/ is generated for a new user? How can I use my own template file here?

View 2 Replies View Related

General :: KDE Global Shortcuts Stopped Working?

Oct 4, 2010

I'm running the latest KDE4 and have gotten used to my Yakuake dropdown console.

The problem is that the global shortcuts in KDE stopped working, which basically makes my whole environment unusable now.

How can I fix this?

I restarted kded as suggested in some forums, but to no avail.

View 1 Replies View Related

General :: Global Expressions Using Vi And Shell Scripting?

Jul 29, 2010

I am trying to learn more about global expressions and how it is needed in changing stuff in vi and in shell scipting in general.My question is basic:

How can I add a " # " pound sign at the beginning of every line in a file. So if I want to remark out every line in a file, what would be the global expression for that? Is there a global expression cheat sheet?

View 4 Replies View Related

General :: Declare Global Variables In Bash?

Jan 23, 2010

I have a problem with a very big script I wrote in bash, and now I need to modulirize it in at least four smaller scripts. The problem is, that most of the variables I have will need to be shared by all scripts.

My question is: is there a way to declare global variables in bash? So that I can use and change them in any of the scripts and every change in the variable can be "seen" by the other scripts later.

View 4 Replies View Related

Ubuntu :: Global Hotkeys On Audacious Don't Respond Unless Open Preferences, Open Settings For Global Hotkeys, Then Close Down The Settings?

Feb 19, 2010

I have two major issues, and one minor one, after I started using Ubuntu, I tried searching the forum for them, but couldn't find anything relevant to my problems.First issue: Screenshots and the cursor.This is probably a very easily fixed issue, but none-the-less, I can not figure it out.How do I NOT include the cursor in my screenshots on Ubuntu 9.10?What I do is, I press the Prt Scrn button, and my cursor is always there in the image, and I don't want that.Second is pidgin.I love it, but every time I boot it up, my friendly name is reverted back to firefoxfag.I think it has something to do with me using gmail for msn, but I'm not sure...Also, as a last very small issue, the global hotkeys on audacious don't respond unless i open preferences, open settings for global hotkeys, then close down the settings..

View 4 Replies View Related

General :: Keyboard Shortcuts - Global Emacs-like Keybindings

Jul 16, 2011

I'm trying to emulate behaviour I get from KeyRemap4MacBook on Mac OS X. It lets me remap control-m to Enter, for instance, globally. Is this possible with X/GNOME? Seems like xmodmap is not suitable for remapping key combinations. I tried xbindkeys to bind control-m to xdotool key Return, but it emits control-return. I tried xdotool keyup control; xdotool key Return; xdotool keydown control but it stills behaves unpredictably.

View 1 Replies View Related

General :: Bash Script - Forget Global Variable's Value?

Apr 9, 2011

I have a hard time with my bash script.

It forget global variable's value.

First look at my script.


Echo "PKGS is [$PKGS] in after loop"

And data file for it is below. Let's name as list.txt


As you see, PKGS variable in loop has correct value.

However, after loop I can not get proper value for it.

View 5 Replies View Related

General :: Use A Global Variable To Apply A Condition Within A Script

Feb 28, 2011

I'm trying to use a global variable to apply a condition within a script.

The idea is to use this variable set to e.g. 1 or 2 to run a different part of the script accordingly. I can set the global variable with e.g.

export WL0=1

run my part of script, increment it by 1 with e.g.


but if I re-run the script my WL0 is still set to 1!

I've also tried to add an

export $WL0 at the very end of my script (after the math) but this doesn't change the global variable apparently.

View 15 Replies View Related

General :: Yum Global Repository Required - Dependencies Missing

Apr 7, 2010

I am tech support engg. Provide support for its software which runs on Linux and Windows. Actually I got stuck in installing PHP in my RHEL server. I redirected to this forum, so I registered here. Looking for some URL to global repository which I can use. Lots of dependencies are missing in my repo.

View 2 Replies View Related

General :: Get The Printer Name To Include In `lpoptions -d`?

Apr 12, 2011

I am trying to set the default printer on a machine running xubuntu from the command line. It looks like I need: lpoptions -d "printer_name" but I do not know the name of the printer. How can I find this information?

View 2 Replies View Related

General :: Include The Subdirectories In A Chown?

Jul 19, 2010

When I installed a new copy of my distro on another partition, in order to preserve all the settings from my old my user account, I made a user account with the same name on the new installation, and then copied my old user account's files (in their entirety) to the new user account, overwriting it. I did the copying from the root account (where else? I assume the new user account can't overwrite itself while it's open), and root became the owner of everything I copied, making it impossible to open the new user account. So I then chowned the new user account's folder to myself. I still can't get in, because apparently, chown only chowned the top folder, leaving all subdirectories owned by root. How do I make chown include all subdirectories? I scanned the man page, but didn't see a parameter.

View 4 Replies View Related

Copyrights 2005-15, All rights reserved