Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7179713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:11:44+00:00 2026-05-28T17:11:44+00:00

I recently switched from using screen to tmux (obtained through macports), as I like

  • 0

I recently switched from using screen to tmux (obtained through macports), as I like the feature set more. However, I can’t seem to get tmux to reattach from an alternate location, like I can screen.

At home on my mac, I will open up iTerm2, my default shell is zsh, and I will begin a tmux session with tmux. I get all my spits set up, ssh’d into the proper servers, etc., and work for a while. Time to go to work. <C-a> d – tmux detaches.

I get to work, where I use a windows xp machine. I fire up putty, ssh into my mac back at home, attempt a tmux attach, and get an error message:

no sessions

I cannot seem to determine why this would happen. I am not afraid to dig into this, but don’t even know where to start. Thoughts?

P.S. I have already removed my .tmux.conf file, so it’s using the default config.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:11:45+00:00Added an answer on May 28, 2026 at 5:11 pm

    tmux stores its server socket in a directory under the directory specified by the TMPDIR environment variable.

    In your GUI session you probably end up with a TMPDIR that points to somewhere under /var (e.g. /var/folders/mV/mVip4IQ4EXOriTiLJmeSuk+++Tc/-Tmp-/).

    When you are logged in through SSH, you probably end up without a TMPDIR set, so tmux looks under /tmp/ for its socket.

    On a 10.6 system, here is my TMPDIR with zsh/Terminal, and with zsh/SSH:

    % echo local: ${TMPDIR-unset}; ssh localhost 'echo remote: ${TMPDIR-unset}'
    local: /var/folders/mV/mVip4IQ4EXOriTiLJmeSuk+++Tc/-Tmp-/
    remote: unset
    

    If you know the value you need to use for TMPDIR, you can specify it when attaching (or running some other tmux command outside of the session itself):

    TMPDIR=/var/folders/mV/mVip4IQ4EXOriTiLJmeSuk+++Tc/-Tmp-/ tmux attach
    

    If you do not know the directory your GUI session was using you might be able to find it with something like this (the syntax is specific to zsh; it searches under /var/folders/ for a directory named -Tmp- that is owned by the current user):

    echo /var/folders/**/*/-Tmp-(U/)
    

    To avoid problems in the future, you might want to unset TMPDIR before starting your server (or set it to something that you can more easily predict).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently switched out log4net logging from using config files to being set up
I recently switched over to using Janus from a custom set of vim plugins
UPDATE: Solution at bottom. I recently switched from using a set up such as
I recently switched from using Linq to Sql to the Entity Framework. One of
Recently, I switched from Visual Studio to Eclipse CDT. I've set it up beautifully
I recently switched to using vi mode ( set :o vi ) in my
Recently switched to XFBML to make our page more efficient. However, we noticed that
I switched from my own VIM setup to janus recently. I really like the
I recently switched from using NSTimer to CVDisplayLink to redraw my OpenGL animation, but
I have recently switched from using Eclipse to IntelliJ, and am preferring the experience.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.