Wednesday, May 15, 2013

How to make a script in linux and ssh?

Q. Hi, i need to make a script to log in my server with ssh, but i need to made it in one line... how can i make it???

A. Host Server:
1. Create login account [user] with ssh access and test from client via ssh.
2. Create and/or chmod -R 700 /home/[user]/.ssh

Client Server:
1. Login as root.
2. Create and/or chmod -R 700 /root/.ssh
3. CD to .ssh and run "ssh-keygen -t rsa" (take defaults/no passphrase)
4. scp id_rsa.pub [user]@[host server]:/home/[user]/.ssh/authorized_keys2 (or copy over then cat >> if already exists)
5. ssh [user]@remotemachine.

It should not prompt you for a password, just drop to a prompt.

auto download linux torrents?
Q. So, i know this is possible i just don't know how. a friend of mine has his computer (Linux) set up so he can scp via ssh or mput via ftp to his server a torrent file and the server starts running the file....
on the other hand. how would you manually have the file open... what command would you give it so it opens the file....

A. 1 Your "friend" won't explain it to you and help you set yours up the same way?

2 Are you running linux on your computer?

3. If you are not running linux and you want to do what he is doing are you prepared to install linux and learn the necessary procedures?

4. Yes it is possible to do what he does but no one can learn to do it in a couple hours. Where do you want to start?

Free trusted Shell access accounts, where can I find some so that I can get bash command access?
Q. I am trying to do some FTP with DOS and it sucks! I have had much better luck in the past when I use my Linux Ubuntu but I am running programs that I have to be under Windows for, (unless I want to install a translator which I do want to do but haven't gotten to it, know of any good ones? for running windows programs in Linux ubuntu? Possible something simple that I can install with Synaptic or kget atleast? But back to the original question. For the time being I want to be able to get some sort of unix bash shell so that I can just upload some files to my server. Any ideas of places that are simple to get an account are trustworthy and are free? Anyone know if GoDaddy offers shell access? I haven't seen much posted on it.

Thanks,

Brian

A. the previous poster is correct, cygwin runs on windows and gives you a shell that supports many commands that you may find useful, such as ssh and scp.

or for windows support on linux, i'm told wine works quite well, though i have yet to try it.

if neither of these solutions is satisfactory, you can use virtualization software, such as vmware, to run true windows under linux or vice-versa. i was aware that there was at least one open source virtualization app out there; xen was the package i was thinking of, but while researching my answer to your question, i learned of another, "virtualbox", in this blog: http://useopensource.blogspot.com/2007/01/open-source-replacement-for-vmware.html


i don't know what kinds of access godaddy offers, sorry.


good luck :)



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment