Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2008 06:43:29 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        EdwardKing <zhangsc@neusoft.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: SSH question
Message-ID:  <48A3C601.40405@infracaninophile.co.uk>
In-Reply-To: <005801c8fdb2$6826abf0$3f83a8c0@neusofteaf5839>
References:  <005801c8fdb2$6826abf0$3f83a8c0@neusofteaf5839>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig791C4C6FF0B1042801C46DBC
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

EdwardKing wrote:
> I use SSH to remote FreeBSD
> $ssh  tom@mydomain.org
> password:
>=20
> Then I SSh to suspend client in that remote machine:
> $~
> /home/tom: Permission denied
>=20
> Permission denied? Why? How to do that?

What happened here is that you were trying to type an escape code
into ssh -- eg. ~^Z (suspend) or ~. (quit)

However, '~' is actually a fairly common character in normal usage,
so ssh will pass it through to the remote login session unless you
get the escape sequence exactly right.  The ~ character must be the
first thing on a new line, and it must be followed by one of the
known key codes, which you can list by using the ~? escape during a
ssh session.

It seems that you typed something wrong: perhaps you managed to type
~~ which means your shell on the remote machine would receive the ~ chara=
cter.  This it would duely expand to be the path to your home
directory.  It then tried to execute that path, but directories are
not executable, resulting in the 'permission denied' message.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enig791C4C6FF0B1042801C46DBC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkijxggACgkQ8Mjk52CukIzk3wCdH9Bf4giceH3FLviXlvug++b4
3AMAoJBeGcvpjrv7GNv+xDYWhAh5mZ7e
=PDrN
-----END PGP SIGNATURE-----

--------------enig791C4C6FF0B1042801C46DBC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48A3C601.40405>