General :: Automatically Add A Protected Key To Ssh-agent On Startup?
Jul 20, 2011
I am using gdm to start awesome wm via .xinitrc.I like awesomes usability and gnomes integrity and so far most of the startup programs work fine but i am fighting with ssh-agent. When starting gnome my password protected id_rsa is automatically added to ssh-agent on startup.. i am trying to achive the same with my .xinitrc started awesome wm.My .xinitrc:
what exactly is SSH Agent as listed in Startup Applications? And can I safely disable it? I've read around a bit and get the impression is has to do with others connecting to my machine/network which is not an issue for me as I'm the only user, but I'm not clear.
I am using Vetor Linux and I want to login automatically every system starpup instead ask for user and password. Vector linux is based in slackware and uses shell to ask user and password.
I have this project for my operating systems class and I have put together the basic flow chart to aid me in writing the program. I know how to use pipes as a buffer to hold info. I know how to create a binary semaphore. But what I dont know is this:
How to "use a delay adjustment parameter K in the critical section to adjust the speed of the display process to show that without semaphore protection the displayed contents of the buffer are randomly interleaved."
First off, I am definitely not asking anyone to give me the solution. But I do need some guidance. So I figure there will be an if statement with two options:
1. If true, use semaphore protection to enter/exit critical section
2. If false, no semaphore protection -- this is where the contents of the buffer should be interleaved.
Now does that mean that as each child process enters the non-protected critical section, it should "sleep" for a randomized time? I mean, will this allow my output to be interleaved?
So lets say my command line looks like this:
what happens to the 100? Is it randomized using rand and srand and passed as a parameter to sleep() inside the critcal section?
I am an administrator of a student lab with 20 PCs. I was thinking of a way to protect those machines in the long run with the presence of some students with destructive behaviour. The most suitable solution to install a Linux OS and use virtual machines to load Microsoft OS. This way once the OS fails I can simply replace the VM with a clone that was previously made.
The point is that most students have no experience with Linux, that's why I need to load the Virtual machine automatically at login and in full-screen view so that The startup process ends up in Microsoft OS through the virtual machine (VMWare based) in Linux platform.
update : I'm using Fedora13 Linux distribution. I believe that part of launching the VM in full-screen is more difficult than automatically launching VMWare at startup. Is there some way I can tell VMWare to launch a particular virtual machine in full-screen when it starts on boot?
I'm running OS X and it appears that after SSHing to several machines, using identity files, my ssh-agent builds up a lot of identity / keys and then offers too many sometimes to a remote machines, causing them to kick me off before connecting. Received disconnect from 10.12.10.16: 2: Too many authentication failures for cwd
It's pretty obvious what's happening, and this page talks about it in more detail: SSH servers only allow you to attempt to authenticate a certain number of times. Each failed password attempt, each failed pubkey/identity that is offered, etc, take up one of these attempts. If you have a lot of SSH keys in your agent, you may find that an SSH server may kick you out before allowing you to attempt password authentication at all. If this is the case, there are a few different workarounds.
Rebooting clears the agent and then everything works OK again. I can also add this line to my .ssh/config file to force it to use password authentication: PreferredAuthentications keyboard-interactive,password Anyhow, I saw the note on the page I referenced talking about deleting keys from the agent, but I'm not sure if that applies on a mac since they appear to be cleared after reboot anyhow. So, my question is, is there a simple way to clear out all keys in the ssh-agent (the same thing that happens at reboot)?
i install cheops-ng-0.2.3.tar.gz on my fedra13,installation was ok,but when i press alt+f2 and type cheops-agent[the server],it won't run,there would be no process called cheops-agent,but when i run it in terminal i can run cheops-ng [the client],what is wrong?
I am writing this second topic to know how I can have hamachi automatically loaded at startup of PC (with fedora 10) without having to manually start. I tried several scripts but nothing works .
Skype works for me, but there is a small thing i like to solve. For the x64 version i need to start skype with a bash command so that the video and sound works and i thougth that a simple batch in folder bin would solve it. So that it gets executed automatically once the desktop loads. Seems it doesn't since i still have to do it manually. How do i execute a batch automatically upon startup under KDE?
How can I turn off specific authentications? I don't want to have to authenticate every time I mount a different drive (in a different partition). (Because I can't open Mozilla, since it pulls a profile from that partition, without authenticating; and I want to have Mozilla automatically launch on startup, but it can't launch if I need to type my password to gain access to the drive first!).
I use this command to mount sshfs:sshfs -o idmap=user user@ip:/home/user/public_html ~/FolderThen I enter my password. I do this every time I start my computer
Since a few weeks my PC have been working slow and the gnome system Monitor says that my cpu is working at 100% all the time. when I ran top command appears:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 770 root 20 0 4060 308 240 R 76 0.0 8:41.05 yes 919 root 20 0 4060 312 240 R 49 0.0 8:23.39 yes
I added a 1TB USB drive to a Red Hat 5.3 system. I added the following line to the /etc/fstab to automount the drive at startup.If I manually the mount the drive (mount /mnt/external), I can access and read/write to the external USB drive without any issues. My problem is that during the startup process after a reboot, the drive is not being mounted automatically.
I have recently installed denyhosts to help guard against bruteforce ssh attacks on my Fedora 12 server from the Fedora repositories. If I manually start denyhosts (as root) using: /usr/sbin/denyhosts.py --daemon
it works fine. The denyhosts log file is created and indeed the /etc/hosts.deny file is updated. However if I make attempts to start denyhosts automatically upon the server restart denyhost fails with a permission denied error for /etc/hosts.deny (error 13) I have tried using chkconfig to enable /etc/init.d/denyhosts on run levels 3, 4 and 5. I have also tried including the line:
/usr/sbin/denyhosts.py --daemon
in /etc/rc.local Both of these attepts report the same error. anyway to automatically start denyhosts or know why this problem might be happening?
I have a script and I would like it to automatically run whenever the machine starts up. How can I configure it to do that? I am a complete Linux n00b.
My wireless in fresh Squeeze install would not connect automatically. I have to click on the network manager and enter the root password to connect every time I start up. I have "Enable Networking" and "Enable Wireless" checked in the Network Manager.
There are only 2 lines now in /etc/network/interfacesauto loiface lo inet loopbackWhat should I do to get the NM to look for and connect wireless automatically at start up
I just reinstalled OpenSUSE 11.3 GENOME on my computer (Compaq Armada E500 w/512 MB RAM, 30GB HD, and Linksys WPG54v2 wireless card). After futzing around for several hours on two different evenings, I got it working all by myself! The only thing is,ow I have to manually connect to my wireless network every time,which gives me a a great sense of accomplishment. I start the computermber having to edit a script somewhere to make it connect automatically on system startup, but I can't remember what it is I'm supposed to edit or how I'm supposed to edit it
i am succesfully installed TeamSpeak 3 server and now i want to startup it automatically without screen daemon and on every startup on linux ubuntu 9.10 i am using this command for start the TS3 server:./ts3server_linux_amd64 dbplugin=ts3db_mysqlin home/user/Desktop/ts3server_linux_amd64
I've been searching for a solution get mount my NTFS FakeRAID automatically when 9.10 64-bit starts, but haven't managed to find a solution.Currently, after boot, dmraid activates my RAID automatically but does not map the partitions on the drive:
Code: $ ls /dev/mapper/ control isw_bibdafajea_Vault
Recently I have had a run of random errors on boot up. Finally, the quit button, top right of the screen disappeared permanently. I am convinced it is because I added Evolution to the programs that start automatically when I login to Ubuntu (auto login). Evolution uses the Internet connection which hasn't been successfully established by the time it starts. In the past, this would crash Ubuntu. It seemed to be fixed by this stage, but maybe not. Is there some way of delaying the startup of a program in the automatic startup list - to give the rest of everything time to settle in - before it starts trying to use other startup resources?
I had to re-install Windows XP because the install was running slow.So, I created another partition using GParted for my personal data and moved my files there and re-installed Windows XP.Now, the Windows partition won't mount automatically.NTFS Configuration Tool shows 0.0GB. So, I have to open up a Terminal window, and issue sudo mount /dev/sda1 /media/Windows and everything is fine.
Is there any way to automatically activate the wifi at system startup without using the keyboard switch? I have tried this script in gedit, saved as .run and added to startup applications but it doesn't work:
i want my computer to function as an alarm clock, i want it to be shut down but start up automatically at a desired time (i'll also have tomboy notes display reminders of what i need to do for the day) this would be a great program
I have to use pppoe because my ISP uses service names, and as far as I know the only program which lets me input a service name is pppoe (inside the pppoe.conf file). Networkmanager is buggy because it tends to disappear from the panel periodically and, worse, it doesn't reconnect (although the option is selected, it does reconnect only once).
So, for peace of mind I open a superuser terminal and enter "pppoe-start" and "pppoe-stop" to have everything I want (reconnects automatically, etc.). Now the question is: how can I have pppoe-start run at startup, automatically, without entering superuser mode, and without having a terminal open for this? Using Debian Testing (Wheezy).