Helpful Information
 
 
Category: Development Articles
The Shell Game

<i>"Remember that you need an SSH daemon at both ends of the connection; in the absence of this, SSH will revert back to using insecure rsh mechanisms to perform a remote login."</i><p>

Sorry, but that isn't right. The client has to store the public key on the server he wants to access and that's all. I mean, ssh is a <i>protocol</i>; you don't need to run an ftpd to ftp either.<p>

My .ssh/config has
<!-- Code -->
<p><pre><font color=#008000><xmp>FallBackToRsh no</xmp></font></pre><p>
<!-- Code -->
and it works perfectly here <i>without</i> running an sshd on the client side.<p>

On the contrary, running an unnecessary server introduces new security issues ... So maybe you want to correct that.<p>

Regards<p>

tom

Put this line either into ~/.xsession or ~/.xinitrc
<!-- Code -->
<p><pre><font color=#008000><xmp>eval 'ssh-agent'</xmp></font></pre><p>
<!-- Code -->

This will set all the environment stuff on startup, so you can run 'ssh-add' in every xterm.<p>
Regards<p>
tom

Tom,

Just checked out what you said - you're absolutely right. sshd1 does *not* need to be running on the client end for the system to work.

Apologies to all for the error - I guess you learn something new every day! :)

Vikram Vaswani

Never mind ;). Excellent article. But maybe you should have mentioned that OpenSSH now supports SSH2, too. Ah well - the possibilities ... <p>
<br>
Regards<p>
<br>
tom

This was a nice article. As an SSH advocate, I'm glad to see something like this that newbies and advanced users alike can benefit from. There is a Windows based client that I use often called TeraTerm:
<br>
<br>
http://www.zip.com.au/~roca/ttssh.html
<br>
<br>
There is also a great Macintosh client called NiftyTelnet that I use:
<br>
<br>
http://www.lysator.liu.se/~jonasw/freeware/niftyssh
<br>
<br>
Death to telnet!
<br>
<br>
Duane Gran
<br>
Solaris Central -- http://www.SolarisCentral.org

or you can do this:
ssh-agent startx

and in the first xterm windows, type;
ssh-add (anter Passphrase)

and you won't have to worry about it again.

how about an FTP SSH CLIENT ?

On a Unix/Linux system, you can install openssh (www.openssh.com - open-source) which includes scp, allowing you to copy files, directories, whole drives securely over IP networks.
<br>
<br>
All you need is the login & passwd needed to get permissions to the files you are copying!
<br>
<br>
Don't know about Windows, don't use it much.
<br>
<br>
-Ben

Trying to build ssh I ran into these errors, which I don't understand.
I'm using a P75 and RedHat6

Can anybody help?
Cheers
Marc

gcc -pipe -c -I. -I./gmp-2.0.2-ssh-2 -I./zlib-1.0.4 -DHAVE_CONFIG_H -DHOST_KEY_FILE=\"/etc/ssh_host_key\" -DHOST_CONFIG_FILE=\"/etc/ssh_config\" -DSERVER_CONFIG_FILE=\"/etc/sshd_config\" -DSSH_PROGRAM=\"/usr/local/bin/ssh1\" -DETCDIR=\"/etc\" -DPIDDIR=\"/var/run\" -DSSH_BINDIR=\"/usr/local/bin\" -DTIS_MAP_FILE=\"/etc/sshd_tis.map\" -g -O2 -I/usr/X11R6/include login.c
login.c: In function `record_login':
login.c:437: structure has no member named `ut_syslen'
login.c:441: structure has no member named `e_termination'
login.c:442: structure has no member named `e_exit'
login.c:454: `WTMPX_FILE' undeclared (first use in this function)
login.c:454: (Each undeclared identifier is reported only once
login.c:454: for each function it appears in.)
make: *** [login.o] Error 1

hello,
i have ssh compiled and working properly.

however, for the life of me i can never get scp to work. here is the error message i get whenever i try:

cd /tmp
pen # scp 63.145.232.12:/tmp/orange ./
Executing ssh2 failed. Command:' ssh2 -o passwordprompt %U@%H's password: -o nodelay yes 63.145.232.12 -s sftp' System error message: 'No such file or directory'
Connection lost.

on the remote box i have touched the /tmp/orange file.

Hi,

Anybody aware of any problems when using OpenSSH as the remote server (Linux 6.2). I get the access denied echo after the correct password has been entered at the login prompt. Currently testing with the Putty terminal on Win95.

Cheers,
MHM

Download mindterm from www.mindbright.se. I use it exclusively for Windows ssh access, and it includes support for scp.

I have SSH working, but am still required to provide the remote hosts password when I log on. Any ideas????????

I installed OpenSSH on my redhat 6.2 machine and it won't even let me ssh to localhost -- it prompts me for login and pw and then tells me the password is wrong, even though it's right.
<br>
<br>
Any ideas? It worked fine with the sshd from ssh.com but that one only supported SSH2 and I want to use Putty on Win.

How do I get this to work with my remote users running windows. Is there a windows version of ssh that I can run ?

I found Icarus' article very informative and detailed for the first time SSH user. I am looking at implementing SSH on our linux machines and this article demonstrates how easy the process. Let's hope we see more articles of this type.

Regards
Paul

There are several SSH clients for Windows. My favourite used to be ZOC. Then I discovered PuTTY and PSCP. Haven't looked back since. Can't beat tools that fit on floppies. :-)

ZOC: http://www.emtec.com/zoc/
PuTTY: http://www.chiark.greenend.org.uk/~sgtatham/putty/

Others: http://www.openssh.org
http://www.freessh.org

Cheers,
Phoenix

What did you expect?<br>
Would you rather anybody could walk into your machine?<P>

If you *really* don't like using passwords, man ssh and look at the RSA key option.<br>
Although without a password on the key, any root operator on any box you are logging in from effectively owns your server.

Regarding the information in the article about PuTTY..



Atleast nowadays PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) has support for both SSH1 and SSH2, RSA Keys and various other bells and whistles.



It is based on open source, but there are precompiled binaries for Wintel and NT/Alpha.



What is included in the PuTTY suite:



PuTTY (the Telnet and SSH client itself)

PSCP (an SCP client)

PSFTP (an SFTP client, currently in the development snapshots only)

PuTTYtel (a Telnet-only client)

Plink (a command-line interface to the PuTTY back ends)

Pageant (an SSH authentication agent for PuTTY, PSCP and Plink)

PuTTYgen (an RSA key generation utility).

(Win vs. UNIX line breaks)










privacy (GDPR)