Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2005 03:37 PM
09-18-2005 03:37 PM
SCP
I need to do SCP from my host to other host in client side.I dont wat to type my password physically everytime when I do scp.Instead is there anyway to do it.
Basically i would like to the copy session as a script.
Thanks
Arunkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2005 03:44 PM
09-18-2005 03:44 PM
Re: SCP
Take a look at this link, It should help.
http://www.mail-archive.com/ssh@clinet.fi/msg04511.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2005 04:11 PM
09-18-2005 04:11 PM
Re: SCP
For connection scp from a local machine to a remote machine without always typing a password, on the remote machine, create the file ".shosts" in your home that contains the name of the local machine. Permission should be 600. SCP will use the ssh_know_hosts file. If the local machine is correctly entered in the user's .ssh/known_hosts file, then the connection will be permitted with out a password.
Eg:
From local machine as whatever USER u want without password,
1. ssh -X
Using the above command, u can add the host in known host file.
2. ssh -X
After the successful connection, exit from the local machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2005 04:38 PM
09-18-2005 04:38 PM
Re: SCP
1. Generate the public and private key on the client machine using ssh-keygen -t dsa command
2. It will generate id_dsa and id_dsa.pub file in $HOME/.ssh directory which are your private and public key
3. copy the public key (id_dsa.pub) file to your target server
4. either copy this file on target host as $HOME/.ssh/authorized_keys or is the file exists then copy the content of public key in this file.
Now your scp will work without prompting for password using the public and private key.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2005 04:39 PM
09-18-2005 04:39 PM
Re: SCP
/opt/ssh/bin/ssh-keygen -t dsa
when asked for a passphrase, hit enter without typing anything, and confirm it one more time when asked the second time.
and save this key pair in the default location, which should be:
$HOME/.ssh/id_dsa
then take the id_dsa.pub and copy it to the remote host using rcp, ftp, scp or any other tool of your choice. You still need to enter your password this time as well, if you are using scp.
make sure the public key file has only one line in it, i.e.,
wc -l /tmp/id_dsa #assumed you copied it to /tmp
shows 1 line as a result on the remote node.
goto the home directory of the user name on the remote node. If exists a directory called .ssh (most likely it will exist)
cd .ssh
otherwise create the directory and go in it.
once in .ssh directory, run command
cat /tmp/id_dsa.pub >> authorized keys
then go back to the local node and issue command,
ssh remote_node
it will ask you if you want to permanently store the key from this host with a yes/no answer. Answer "yes" to this question not "Y" or "y", type the full word yes.
At this point you should be good to go. you can ssh or scp from this host to the remote host, seamlessly, without typing a password.
hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2005 04:42 PM
09-18-2005 04:42 PM
Re: SCP
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com