A new semester starts in a few days and it's time to move stuff to the server, but, alas, I couldn't log in to the server. More specifically, ssh worked fine, but sftp failed. And it didn't just fail from my Ubuntu desktop, but from my XP netbook. Clearly it was a problem on the server, but I decided to do a little googling before opening a ticket and suggesting to the IT staff that something was screwed up. Besides, if sftp was broken on a university-wide basis, they probably already knew about it.
Google led here, which had a link to a post from a guy whose last name meshes well with my profile picture.
The problem could be that my .cshrc on the server was generating output that sftp didn't know to deal with. Another blogger somewhere gave a hint regarding what this was, and indeed the decimal 1114795883 in the error message was 0x42726f6b, or, in ASCII: "Brok'. Yes, something was broken, and 4 bytes was all that fit into the integer error message.
So I had to figure out why GL (the server, gl.umbc.edu) was generating extra characters. My default shell is tcsh, so the problem was most likely in the init file, .cshrc. I decided not to look at the system-wide .cshrc initially. I tossed some detritus from my .cshrc, and again failed to log in.
There was still a suspicious line, '/usr/bin/mesg n', at the beginning of the file. Why wasn't this inside the conditional that distinguished between interactive shells and others? I moved it into the conditional, and suddenly I was able to log in.
I had to chuckle. I added that line last semester when a student decided that if we were logged in on GL at the same time, he could chat with me. No. But I was clearly careless when I disabled write.
Showing posts with label sftp. Show all posts
Showing posts with label sftp. Show all posts
Saturday, January 23, 2010
Saturday, July 11, 2009
gFTP Much Nicer than Nautilus for sftp
Gnome ships with GUI sftp support built into nautilus, but it's not ideal. I was living with it, and do prefer it over the command line version (I'm getting lazy in my old age) but recently have been evaluating xfce as an environment. This is a whole different story, but I'd like to find a less bloated, less buggy environment than Gnome. Xfce doesn't seem to ship with a GUI sftp client, which is totally fine--why ship software that many users won't use?
Looking around, I found gFTP. So far, it seems gFTP is as good as nautilus in every respect. A major difference, however, is that when transferring files to and fro, gFTP maintains modification times. This way, if I have two copies of the same file in two (or more) places, they all have the same modification time. Seems pretty basic and pretty obvious--and very important--but nautilus gets it wrong.
Is my preference for a GUI sftp client really a sign of laziness? I don't think so. In many cases command line tools are quicker and easier, but when maintaining web directory trees it's nice to be able to quickly glance at two directories and see if their contents match. gFTP does have one quirk that's inconvenient in this regard, however, in that it sorts files and directories differently. IMHO, this is another sign of Linux developers not understanding Unix: a directory is, like a file, a link in a directory, darn it, so sort it like other links.
Looking around, I found gFTP. So far, it seems gFTP is as good as nautilus in every respect. A major difference, however, is that when transferring files to and fro, gFTP maintains modification times. This way, if I have two copies of the same file in two (or more) places, they all have the same modification time. Seems pretty basic and pretty obvious--and very important--but nautilus gets it wrong.
Is my preference for a GUI sftp client really a sign of laziness? I don't think so. In many cases command line tools are quicker and easier, but when maintaining web directory trees it's nice to be able to quickly glance at two directories and see if their contents match. gFTP does have one quirk that's inconvenient in this regard, however, in that it sorts files and directories differently. IMHO, this is another sign of Linux developers not understanding Unix: a directory is, like a file, a link in a directory, darn it, so sort it like other links.
Subscribe to:
Posts (Atom)