CCIT

UA Home CCIT Home UA Search

SSH Tricks & Problems

Revised June 6, 2005
This webpage describes some shortcuts and how to deal with certain problems when working with SSH on both Macs and PCs.

Tricks

  • PC   You have an SSH window open and you have completed your setup. Just hit Enter and it will prompt you for your password so you can log in.
  • PC   Your SSH session has timed-out and the window appears greyed-out. Press Enter and you will be prompted for your password to log in again.
  • PC   SSH provides an easy way to set file-access permissions (like to make your webpages viewable with a browser).
  • PC   You are logged in and it's time to copy files. Press the New File Transfer Window button on the toolbar (it looks like a yellow file folder with blue dots) and a file-transfer window starts. You do not need to login in again.
  • PC   The reverse is also true: if you only have a File Transfer window open, just click on the SSH Secure Shell button on the toolbar (it looks like a white monitor with blue dots) to start a compute session.
  • All   The two hostnames used in applications that must tunnel SSH - 127.0.0.1 and localhost - are synonyms for the internal IP address of your computer. For some applications like DreamweaverMX, Mac users must also include :1024 as the virtual Port number. Normally, 127.0.0.1 or localhost can be used in any and all tunnel definitions for all sites and all applications, as long as you are using only this one tunnel at a time and closing it (disconnecting) before re-using the tunnel. You have one pipe to the "outside world" - it is your SSH software that controls the real (versus virtual) remote hosts to which you connect. If you need to do file transfers to more than one remote host at a time, Mac users can set a series of higher port numbers (e.g., 1025, 1026) in the definitions for subsequent sites to avoid conflicts.
  • PC   Although you can have only one SSH tunnel open at a time, they can have numerous SSH sessions active, connected to numerous remote computers.

Problems

  • All   Sometimes you may see extraneous data in a file you just up/downloaded. Especially when going between PC and Unix-type platforms, set the Transfer Mode to Binary, rather than ASCII or AutoSelect. In SSH's SFTP window, under Operation, select Binary. Then, under Operation, do your Upload or Download operation. It would be safe to leave the Transfer Mode as Binary, so, to save it that way, under File choose Save Settings.
  • PC   SSH for Windows XP has a bug when uploading files. See this work-around.
  • All   When you try to log in to w3.arizona.edu, you get the message
    Password change required but no TTY available.

    Your password has expired and you are using an FTP client, like SSH's SFTP on a PC or Fugu on Mac OS X, but you cannot change your password with the FTP interface.You need to start an SSH shell client instead. Log in using your current (expired) password. You will be prompted again for your current password and then you'll be prompted twice for your new password. If this technique fails, log into the U-System and enter the command
    ssh Your_W3_Username@w3.arizona.edu

    You'll be prompted for your current password on W3 and a new one.
  • All   You try to view the webpage that you just moved to the web server and you get a message that you do not have permission. There are detailed steps for granting access for both Shell and Menu users and using SSH to do it.
  • PC   You cannot remove a subdirectory using the SFTP window, even though you've delete all the files in it. Some programs create hidden files that do not show up in normal file lists. (They are hidden by prepending their names with a dot-prefix ("."). Using the SFTP window, turn on Show Hidden Files under the View menu. Then you can delete them (under Operation or use the Delete key). Using the Shell window, use the command ls -la then you can use those files' names in a remove command (rm).
  • PC   SSH gives you ways to Add and Edit profiles but how do you delete a profile? Under Profiles, select Edit Profiles, highlight the one you want to delete, press the Delete key and confirm that you want to delete it. If that fails, use this delete procedure.
  • All   When you attempt to upload (transfer) a file, the transferred file either shows zero bytes are transmitted (Size = 0) or the file just does not transfer at all. This usually indicates you have reached your quota limit on the server, such as the U-System. Once this has happened, you must delete some files to make space for the new files or move them to another computer by downloading and then deleting them from the server. You can check your quota by using the SSH Secure Shell (after opening a Terminal Window) and typing ezquota at the prompt. If accessing your server account via the Menu interface, select File from the menu and put in your password to check your quota.

Have your own special trick or problem that you'd like to share? Let us know
CCIT Computing Services

go-back arrow SSH Setup Homepage
pointerUA Homepage      CCIT Homepagepointer


The Center for Computing & Information Technology (CCIT)
CCIT Knowledgebase
Telephone: 621-HELP
Email: Consult@listserv.arizona.edu

Website maintained by:
CCIT Computing Services