9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 300 servers listed in servers.txt
I motto is to check if my id "user1" has sudo privileges on the 3000 servers. I m using sudo -l to check if I have privileges or not. If wish to check this either non-interactively; if not; interactively.
Below is the script I wrote:
... (5 Replies)
Discussion started by: mohtashims
5 Replies
2. Shell Programming and Scripting
Hi,
I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step:
#!/bin/bash
# LAN SSH KEYS DISCOVERY SCRIPT
</etc/passwd \
grep /bin/bash |
cut -d: -f6 |
sudo xargs -i -- sh -c '
&& cat... (11 Replies)
Discussion started by: syrius
11 Replies
3. Red Hat
Hello Experts,
when I am trying to connect my target server through sftp after creating ssh password less setup, it is asking for passowrd to connect.
to setup this I followed below process:
-->generated keys by executing the command "ssh-keygen -t rsa"
-->this created my .ssh directory... (9 Replies)
Discussion started by: Devipriya Ch
9 Replies
4. Shell Programming and Scripting
Hey Gurus,
I have this requirement to change the password for other servers remotely from one server. So, I installed public keys on all servers and wrote the following script to do the job. Something appears to be wrong with my loop, as it only changes one server and ignores the rest. I'm... (24 Replies)
Discussion started by: Hiroshi
24 Replies
5. IP Networking
Hi all.
Im working in a telco Environment and recently setup a new server. The other servers are a combination of Solaris + Linux machines.
Using my new server , I can ping all other servers ( solaris + redhat linux )
but the issue lies where I try to ssh.
I can only successfully ssh linux... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
6. Shell Programming and Scripting
Hello Folks,
I have two linux server accounts server1 and server2
From the terminal if I say this command,
scp /source/folder/from/server1/unix.txt user@server2.com:/destination/folder/
Then it prompts for the password
user@server2.com's password:
I enter my password and then it... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
7. Solaris
Hi Gurus
I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails.
Resetting my password reenables the keys.
Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies
8. UNIX for Dummies Questions & Answers
We rebooted one our servers, call it server A, and now it cannot ssh into another machine, call it server B. We have the server A's ssh signature in server B's authorized key. I tried to manually generate the a new key using ssh-keygen command but the key looks nothing like the old key:
It has... (10 Replies)
Discussion started by: mojoman
10 Replies
9. Shell Programming and Scripting
Hey..
I am new in scripting.. I know a little bit of scripting.. I am facing some problem.. I need to create a script using which I may log on to a server (e.g. ftp) with ID and password.. thus copy a particular file to a local dir.. the commands required to do that I do know.. I am able to do it... (1 Reply)
Discussion started by: razeeev
1 Replies