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
tokyotyranttable
TOKYOTYRANTTABLE(3) TOKYOTYRANTTABLE(3)
The TokyoTyrantTable class
INTRODUCTION
Provides an API to the table databases. A table database can be create using the following command: ttserver -port 1979 /tmp/tt_table.tct.
In Tokyo Tyrant the table API is a schemaless database which can store arbitrary amount of key-value pairs under a single primary key.
CLASS SYNOPSIS
TokyoTyrantTable
TokyoTyrantTableextends
TokyoTyrant
Methods
o public void TokyoTyrantTable::add (string $key, mixed $increment, [string $type])
o public int TokyoTyrantTable::genUid (void )
o public void TokyoTyrantTable::get (mixed $keys)
o public TokyoTyrantIterator TokyoTyrantTable::getIterator (void )
o public TokyoTyrantQuery TokyoTyrantTable::getQuery (void )
o public void TokyoTyrantTable::out (mixed $keys)
o public int TokyoTyrantTable::put (string $key, array $columns)
o public void TokyoTyrantTable::putCat (string $key, array $columns)
o public void TokyoTyrantTable::putKeep (string $key, array $columns)
o public void TokyoTyrantTable::putNr (mixed $keys, [string $value])
o public void TokyoTyrantTable::putShl (string $key, string $value, int $width)
o public mixed TokyoTyrantTable::setIndex (string $column, int $type)
Inherited methods
o public number TokyoTyrant::add (string $key, number $increment, [int $type])
o public TokyoTyrant TokyoTyrant::connect (string $host, [int $port = TokyoTyrant::RDBDEF_PORT], [array $options])
o public TokyoTyrant TokyoTyrant::connectUri (string $uri)
o public TokyoTyrant::__construct ([string $host], [int $port = TokyoTyrant::RDBDEF_PORT], [array $options])
o public TokyoTyrant TokyoTyrant::copy (string $path)
o public string TokyoTyrant::ext (string $name, int $options, string $key, string $value)
o public array TokyoTyrant::fwmKeys (string $prefix, int $max_recs)
o public mixed TokyoTyrant::get (mixed $keys)
o public TokyoTyrantIterator TokyoTyrant::getIterator (void )
o public int TokyoTyrant::num (void )
o public TokyoTyrant TokyoTyrant::out (mixed $keys)
o public TokyoTyrant TokyoTyrant::put (mixed $keys, [string $value = NULL])
o public TokyoTyrant TokyoTyrant::putCat (mixed $keys, [string $value])
o public TokyoTyrant TokyoTyrant::putKeep (mixed $keys, [string $value])
o public TokyoTyrant TokyoTyrant::putNr (mixed $keys, [string $value = NULL])
o public mixed TokyoTyrant::putShl (string $key, string $value, int $width)
o public mixed TokyoTyrant::restore (string $log_dir, int $timestamp, [bool $check_consistency = true])
o public mixed TokyoTyrant::setMaster (string $host, int $port, int $timestamp, [bool $check_consistency = true])
o public int TokyoTyrant::size (string $key)
o public array TokyoTyrant::stat (void )
o public mixed TokyoTyrant::sync (void )
o public TokyoTyrant TokyoTyrant::tune (float $timeout, [int $options = TokyoTyrant::RDBT_RECON])
o public mixed TokyoTyrant::vanish (void )
PHP Documentation Group TOKYOTYRANTTABLE(3)