Everytime I ssh into a server, I need to add the same ssh-key over and over again. So I have a script that does it for me, which worked fine for awhile. However now the server is complaining:- You have too many files are open.  Close some files or increase your per-process descriptor limit.while executingspawn bash -c ssh-add [...some key]The full script:#!/usr/bin/expect -f                                                            set key [lindex $argv 0]                                                        set pass [lindex $argv 1]   spawn bash -c ssh-add /path/to/.ssh/$key                               expect passphrase                                                             send $pass\n                                                                  interact I don't know enough about spawn and ssh-add to know what to do. When I run ps -e, there's only the bash process. Maybe this is because it's a shared host server? I guess I'm not using spawn correctly. How should I solve this and avoid the problem in the future?
How do you close all ssh-add keys?
bash;ssh