02-03-2010
Actually, it looks like I figured this out. It seems if I put the public key from USER_A into USER_B's authorized_hosts, it works. However, my real issue is I have users A-Z who all need to connect to HOST_B as USER_B. Would I just need to copy USER_A's public key to USER_B-USER_Z's .ssh directory for that to work?
Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to connect to a remote server through ssh.
i have to also provide password within that script.
after connecting to the remote server i want to do some operations like grep,cd etc
can u pls help me to wite a script.
Thanks (1 Reply)
Discussion started by: millan
1 Replies
2. UNIX for Dummies Questions & Answers
I am trying to create a batch script to securely copy (scp or sftp) files from one machine to another. Unfortunately the files are owned by a different user than the one on my local machine.
I have already done a keygen and moved the public key to the authorized_users file of the user on the... (2 Replies)
Discussion started by: PSDba
2 Replies
3. Shell Programming and Scripting
Hi ,
I am new to shell script.
I have to write a shell script which will login to remote server then check for the space there. There 50 remote ervers all are having different password.
Could you please suggest me some way. I am working on solaris box.
Thanks in advance (2 Replies)
Discussion started by: vikash_k
2 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Really hope someone can help me, i have been trying lots of things and just cant seem to nail it - and for something that seems straight forward....
Anyway, scenario is I need to log onto a second machine (remote server) from main workstation. Once logged in I need to run a batch... (2 Replies)
Discussion started by: Hopper_no1
2 Replies
5. Shell Programming and Scripting
Hello All,
I'm new to unix and i need the below favour from you.
I have list of 50 unix server. I need to login to all the server one by one and with the same user and password. I will declare the user name and password globally in the script.
for example :
servername- hyperV
user name... (4 Replies)
Discussion started by: Hari A
4 Replies
6. Red Hat
hi all
i am unable to connect remote server using ssh but i am able to ping the server
ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies
7. HP-UX
I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it.
I want sftp can read a password define in script or from file, so it can... (1 Reply)
Discussion started by: ketanraut
1 Replies
8. Shell Programming and Scripting
Hi,
I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this.
I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Discussion started by: ssk250
6 Replies
9. Ubuntu
Hello,
What I want to do is to run a file on remote server by running a script at localhost but script should not ask ssh password of my remote server when script is executed.
Scenario1:
To copy files from server2 to data server:$ scp -r root@server2_ip:/var/www/html/*.* /var/
When I enter... (6 Replies)
Discussion started by: baris35
6 Replies
10. Shell Programming and Scripting
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
LEARN ABOUT PHP
directoryiterator
DIRECTORYITERATOR(3) 1 DIRECTORYITERATOR(3)
The DirectoryIterator class
INTRODUCTION
The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.
CLASS SYNOPSIS
DirectoryIterator
DirectoryIteratorextends
SplFileInfoSeekableIterator
Methods
o public DirectoryIterator::__construct (string $path)
o public DirectoryIterator DirectoryIterator::current (void )
o public int DirectoryIterator::getATime (void )
o public string DirectoryIterator::getBasename ([string $suffix])
o public int DirectoryIterator::getCTime (void )
o public string DirectoryIterator::getExtension (void )
o public string DirectoryIterator::getFilename (void )
o public int DirectoryIterator::getGroup (void )
o public int DirectoryIterator::getInode (void )
o public int DirectoryIterator::getMTime (void )
o public int DirectoryIterator::getOwner (void )
o public string DirectoryIterator::getPath (void )
o public string DirectoryIterator::getPathname (void )
o public int DirectoryIterator::getPerms (void )
o public int DirectoryIterator::getSize (void )
o public string DirectoryIterator::getType (void )
o public bool DirectoryIterator::isDir (void )
o public bool DirectoryIterator::isDot (void )
o public bool DirectoryIterator::isExecutable (void )
o public bool DirectoryIterator::isFile (void )
o public bool DirectoryIterator::isLink (void )
o public bool DirectoryIterator::isReadable (void )
o public bool DirectoryIterator::isWritable (void )
o public string DirectoryIterator::key (void )
o public void DirectoryIterator::next (void )
o public void DirectoryIterator::rewind (void )
o public void DirectoryIterator::seek (int $position)
o public string DirectoryIterator::__toString (void )
o public bool DirectoryIterator::valid (void )
CHANGELOG
+--------+----------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+----------------------------------------+
| 5.1.2 | |
| | |
| | DirectoryIterator extends SplFileInfo. |
| | |
+--------+----------------------------------------+
PHP Documentation Group DIRECTORYITERATOR(3)