title: How to access Iterm2 from intellij
body: <p>I want to configure the terminal console in "IntelliJ Idea 15" IDE to access iterm2 on my MacOS. Tried the steps mentioned here <a href="https://www.jetbrains.com/help/idea/2016.3/working-with-embedded-local-terminal.html" rel="noreferrer">https://www.jetbrains.com/help/idea/2016.3/working-with-embedded-local-terminal.html</a></p>
  
  <p>But it shows an error as below</p>
  
  <p>2017-02-15 11:15:02.308 iTerm2[71018:1042426] Succeeded.
  2017-02-15 11:15:02.318 iTerm2[71018:1042426] tryToAttachToServerWithProcessId: Attempt to connect to server for pid 68144
  2017-02-15 11:15:02.319 iTerm2[71018:1042426] Succeeded.
  2017-02-15 11:15:02.358 iTerm2[71018:1042426] Try to connect to orphaned server at /var/tmp/iTerm2.socket.1694
  2017-02-15 11:15:02.358 iTerm2[71018:1042426] Failed: Connection refused</p>
  
  <p>I am using Mac OS X (el capitan - v10.11.6) Could someone please assist me with this. Thanks in advance.</p>